aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/utf/utf_tools.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2007-01-03 18:58:19 +0000
committerNils Adermann <naderman@naderman.de>2007-01-03 18:58:19 +0000
commit17a27175fd769db449aef44a82d16747a440d452 (patch)
treee21534f2f2f33ed2076271f09add84c197951aef /phpBB/includes/utf/utf_tools.php
parent732ad23cd724e60df801a5cc32611e7d7706240d (diff)
downloadforums-17a27175fd769db449aef44a82d16747a440d452.tar
forums-17a27175fd769db449aef44a82d16747a440d452.tar.gz
forums-17a27175fd769db449aef44a82d16747a440d452.tar.bz2
forums-17a27175fd769db449aef44a82d16747a440d452.tar.xz
forums-17a27175fd769db449aef44a82d16747a440d452.zip
- 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
Diffstat (limited to 'phpBB/includes/utf/utf_tools.php')
-rw-r--r--phpBB/includes/utf/utf_tools.php32
1 files changed, 18 insertions, 14 deletions
diff --git a/phpBB/includes/utf/utf_tools.php b/phpBB/includes/utf/utf_tools.php
index ca4aa86ce3..c3c15b2c3b 100644
--- a/phpBB/includes/utf/utf_tools.php
+++ b/phpBB/includes/utf/utf_tools.php
@@ -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);