Index: trunk/phpwiki/fpw/wikiTitle.php |
— | — | @@ -76,8 +76,9 @@ |
77 | 77 | $s = str_replace ( "\\\"" , "" , $s ) ; |
78 | 78 | #$s = str_replace ( "\"" , "" , $s ) ; |
79 | 79 | # All non-alpha ASCII chars: !"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\127 |
80 | | - # FIXME: Decide exactly which ones to forbid. |
81 | | - $s = preg_replace ( "/[\"\#\$\%\&\\<>\[\]\{\|\}\127]/", "", $s); |
| 80 | + # FIXME: Currently following Usemod rules for forbidding chars, except for /, :, and 0x80-0xc0 range for UTF-8 |
| 81 | + # Do we want that? |
| 82 | + $s = preg_replace ( "/([^-,.()' _0-9A-Za-z\/:\x80-\xff])/", "", $s); |
82 | 83 | |
83 | 84 | # Make it compatible with old wiki |
84 | 85 | $s = str_replace ( " " , "_" , $s ) ; |