|
From: <be...@us...> - 2013-08-06 12:25:53
|
Revision: 11882
http://sourceforge.net/p/xoops/svn/11882
Author: beckmi
Date: 2013-08-06 12:25:50 +0000 (Tue, 06 Aug 2013)
Log Message:
-----------
fixing a bug with variable name
Modified Paths:
--------------
XoopsCore/branches/2.5.x/2.5.7/htdocs/class/module.textsanitizer.php
Modified: XoopsCore/branches/2.5.x/2.5.7/htdocs/class/module.textsanitizer.php
===================================================================
--- XoopsCore/branches/2.5.x/2.5.7/htdocs/class/module.textsanitizer.php 2013-08-06 11:46:35 UTC (rev 11881)
+++ XoopsCore/branches/2.5.x/2.5.7/htdocs/class/module.textsanitizer.php 2013-08-06 12:25:50 UTC (rev 11882)
@@ -635,9 +635,9 @@
// $replacements = "'[code\\1]'.base64_encode('\\2').'[/code]'";
$patterns = "/\[code([^\]]*?)\](.*)\[\/code\]/sU";
- $text2 = preg_replace_callback($patterns, create_function('$matches',"return '[code'.\$matches[1].']' . base64_encode(\$matches[2]). '[/code]';"),$text);
+ $text = preg_replace_callback($patterns, create_function('$matches',"return '[code'.\$matches[1].']' . base64_encode(\$matches[2]). '[/code]';"),$text);
}
- return $text2;
+ return $text;
}
|