Skip to content

Commit

Permalink
[d3pipes.plugin] bugfix about multi byte values of base page
Browse files Browse the repository at this point in the history
d3pipes の内部情報取得用パイプのプラグインで base page に、英字以外の値を設定できない問題の修正。
  • Loading branch information
nao-pon committed Sep 8, 2013
1 parent b1d9513 commit a3eff0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xoops_trust_path/modules/xpwiki/include/d3pipes.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function renderOptions( $index , $current_value = null )
$ret_0 .= '</select>' ;

// options[1] (base page)
$options[1] = preg_replace( '/[^0-9a-zA-Z_-]/' , '' , @$options[1] ) ;
$options[1] = htmlspecialchars( @$options[1] , ENT_QUOTES, _CHARSET) ;
$ret_1 = 'Base page'.'<input type="text" name="joint_options['.$index.'][1]" value="'.$options[1].'" size="15" />' ;

// options[2] (max_entries)
Expand Down

0 comments on commit a3eff0d

Please sign in to comment.