1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-04 05:37:32 +02:00

Bug #3039 - underscores in file name wrongly converted

This commit is contained in:
e107steved
2006-12-19 20:34:12 +00:00
parent 3694bad7c7
commit 91f44becee

View File

@@ -11,9 +11,9 @@
| GNU General Public License (http://gnu.org). | GNU General Public License (http://gnu.org).
| |
| $Source: /cvs_backup/e107_0.8/e107_handlers/emote.php,v $ | $Source: /cvs_backup/e107_0.8/e107_handlers/emote.php,v $
| $Revision: 1.1.1.1 $ | $Revision: 1.2 $
| $Date: 2006-12-02 04:33:44 $ | $Date: 2006-12-19 20:34:12 $
| $Author: mcfly_e107 $ | $Author: e107steved $
+----------------------------------------------------------------------------+ +----------------------------------------------------------------------------+
*/ */
if (!defined('e107_INIT')) { exit; } if (!defined('e107_INIT')) { exit; }
@@ -30,7 +30,7 @@ function r_emote()
foreach($tp->e_emote->emotes as $key => $value) foreach($tp->e_emote->emotes as $key => $value)
{ {
$key = str_replace("!", ".", $key); $key = str_replace("!", "_", $key);
$key = preg_replace("#_(\w{3})$#", ".\\1", $key); $key = preg_replace("#_(\w{3})$#", ".\\1", $key);
$key = e_IMAGE."emotes/" . $pref['emotepack'] . "/" .$key; $key = e_IMAGE."emotes/" . $pref['emotepack'] . "/" .$key;