[Cs-content-commits] SF.net SVN: cs-content:[495] trunk/1.0/cs_globalFunctions.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
|
From: <cra...@us...> - 2011-05-10 23:44:39
|
Revision: 495
http://cs-content.svn.sourceforge.net/cs-content/?rev=495&view=rev
Author: crazedsanity
Date: 2011-05-10 23:44:33 +0000 (Tue, 10 May 2011)
Log Message:
-----------
the "text" and "varchar" cleaning styles are now just like "sql_insert".
Modified Paths:
--------------
trunk/1.0/cs_globalFunctions.class.php
Modified: trunk/1.0/cs_globalFunctions.class.php
===================================================================
--- trunk/1.0/cs_globalFunctions.class.php 2011-03-26 00:58:22 UTC (rev 494)
+++ trunk/1.0/cs_globalFunctions.class.php 2011-05-10 23:44:33 UTC (rev 495)
@@ -403,6 +403,8 @@
break;
+ case "varchar":
+ case "text":
case "sql_insert":
/*
* This is for descriptive fields, where double quotes don't need to be escaped: in these
@@ -550,15 +552,6 @@
$cleanThis = $this->interpret_bool($cleanThis, array('f', 't'));
break;
- case "text":
- case "varchar":
- $cleanThis=$this->cleanString($cleanThis,"query");
- $cleanThis="'" . $cleanThis . "'";
- if($cleanThis == "''") {
- $cleanThis="NULL";
- }
- break;
-
case "date":
$cleanThis = preg_replace("/[^0-9\-]/","",$cleanThis);
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|