|
From: <dj...@us...> - 2012-02-13 03:45:55
|
Revision: 8948
http://xoops.svn.sourceforge.net/xoops/?rev=8948&view=rev
Author: djculex
Date: 2012-02-13 03:45:49 +0000 (Mon, 13 Feb 2012)
Log Message:
-----------
function sanitize missing in functions.php ??
Modified Paths:
--------------
XoopsModules/xim/releases/1.02/modules/xim/include/functions.php
XoopsModules/xim/trunk/modules/xim/include/functions.php
Modified: XoopsModules/xim/releases/1.02/modules/xim/include/functions.php
===================================================================
--- XoopsModules/xim/releases/1.02/modules/xim/include/functions.php 2012-02-13 03:32:51 UTC (rev 8947)
+++ XoopsModules/xim/releases/1.02/modules/xim/include/functions.php 2012-02-13 03:45:49 UTC (rev 8948)
@@ -124,4 +124,15 @@
return $retval;
}
+ function xim_sanitize($text)
+ {
+ $text = htmlspecialchars($text, ENT_QUOTES);
+ $myts = MyTextSanitizer::getInstance();
+ $text = $myts->displayTarea($text, 1, 1, 1, 1);
+ $text = str_replace("\n\r", "\n", $text);
+ $text = str_replace("\r\n", "\n", $text);
+ $text = str_replace("\n", "<br />", $text);
+ $text = str_replace("\"", "'", $text);
+ return $text;
+ }
?>
\ No newline at end of file
Modified: XoopsModules/xim/trunk/modules/xim/include/functions.php
===================================================================
--- XoopsModules/xim/trunk/modules/xim/include/functions.php 2012-02-13 03:32:51 UTC (rev 8947)
+++ XoopsModules/xim/trunk/modules/xim/include/functions.php 2012-02-13 03:45:49 UTC (rev 8948)
@@ -124,4 +124,16 @@
return $retval;
}
+ function xim_sanitize($text)
+ {
+ $text = htmlspecialchars($text, ENT_QUOTES);
+ $myts = MyTextSanitizer::getInstance();
+ $text = $myts->displayTarea($text, 1, 1, 1, 1);
+ $text = str_replace("\n\r", "\n", $text);
+ $text = str_replace("\r\n", "\n", $text);
+ $text = str_replace("\n", "<br />", $text);
+ $text = str_replace("\"", "'", $text);
+ return $text;
+ }
+
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|