| | |
| | | // Also strtoupper/strtolower and other methods are locale-aware |
| | | // for these locales it is problematic (#1490519) |
| | | if (in_array($lang, array('tr_TR', 'ku', 'az_AZ'))) { |
| | | setlocale(LC_CTYPE, 'en_US.utf8', 'en_US.UTF-8'); |
| | | setlocale(LC_CTYPE, 'en_US.utf8', 'en_US.UTF-8', 'C'); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | // try to log in |
| | | if (!$storage->connect($host, $username, $pass, $port, $ssl)) { |
| | | // Wait a second to slow down brute-force attacks (#1490549) |
| | | sleep(1); |
| | | return false; |
| | | } |
| | | |
| | |
| | | |
| | | foreach ($emoticons as $idx => $file) { |
| | | // <img title="Cry" src="http://.../program/js/tinymce/plugins/emoticons/img/smiley-cry.gif" border="0" alt="Cry" /> |
| | | $search[] = '/<img title="[a-z ]+" src="https?:\/\/[a-z0-9_.\/-]+\/tinymce\/plugins\/emoticons\/img\/'.$file.'.gif"[^>]+\/>/i'; |
| | | $file = preg_quote('program/js/tinymce/plugins/emoticons/img/' . $file . '.gif', '/'); |
| | | $search[] = '/<img (title="[a-z ]+" )?src="[^"]+' . $file . '"[^>]+\/>/i'; |
| | | $replace[] = $idx; |
| | | } |
| | | |