1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-08 01:36:57 +02:00

- allow login with redirect parameter

- altered URL regular expression so it won't cause problem with long URLs - PCRE >:( [Bug #6720]
- moderator list on index should have coloured groups in bold as everywhere else too
- correctly handle password requirements in UCP [Bug #6692]
- added soft-hyphen to utf8_clean_string(), if you know any more evil characters (or whitespace characters that are not in ASCII range) then tell me about them (bug report) ;-)


git-svn-id: file:///svn/phpbb/trunk@6832 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Nils Adermann
2007-01-03 18:58:19 +00:00
parent 732ad23cd7
commit 17a27175fd
6 changed files with 28 additions and 24 deletions

View File

@@ -1092,22 +1092,26 @@ function utf8_clean_string($text)
static $homographs = array(
// cyrllic
"\xD0\xB0" => "\x61",
"\xD0\xB5" => "\x65",
"\xD0\xBE" => "\x6F",
"\xD1\x80" => "\x70",
"\xD1\x81" => "\x63",
"\xD1\x83" => "\x79",
"\xD1\x85" => "\x78",
"\xD1\x95" => "\x73",
"\xD1\x96" => "\x69",
"\xD1\x98" => "\x6A",
"\xD2\xBB" => "\x68",
"\xD0\xB0" => "\x61",
"\xD0\xB5" => "\x65",
"\xD0\xBE" => "\x6F",
"\xD1\x80" => "\x70",
"\xD1\x81" => "\x63",
"\xD1\x83" => "\x79",
"\xD1\x85" => "\x78",
"\xD1\x95" => "\x73",
"\xD1\x96" => "\x69",
"\xD1\x98" => "\x6A",
"\xD2\xBB" => "\x68",
// greek
"\xCE\xB1" => "\x61",
"\xCE\xBF" => "\x6F",
"\xCE\xB1" => "\x61",
"\xCE\xBF" => "\x6F",
// other
"\xC2\xA1" => "\x69",
"\xC2\xA1" => "\x69",
"\xC2\xAD" => '',
"\x08" => '',
"\x09" => "\x32",
"\x11" => "\x32",
);
$text = strtr($text, $homographs);