Skip to content

Commit a3eff0d

Browse files
committed
[d3pipes.plugin] bugfix about multi byte values of base page
d3pipes の内部情報取得用パイプのプラグインで base page に、英字以外の値を設定できない問題の修正。
1 parent b1d9513 commit a3eff0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xoops_trust_path/modules/xpwiki/include/d3pipes.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function renderOptions( $index , $current_value = null )
6262
$ret_0 .= '</select>' ;
6363

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

6868
// options[2] (max_entries)

0 commit comments

Comments
 (0)