Looks like the quoting needs to be done differently
authorJoey Schulze <joey@infodrom.org>
Mon, 23 Feb 2004 17:15:21 +0000 (17:15 +0000)
committerJoey Schulze <joey@infodrom.org>
Mon, 23 Feb 2004 17:15:21 +0000 (17:15 +0000)
Styles/phptools.inc

index 4677fe6..d9a37f5 100644 (file)
@@ -9,8 +9,10 @@
     # Problem: Im Form kommt " an, PHP macht daraus freundlicherweise \"
     #          und schon sind unsere Daten in der SQL-DB kaputt.  Danke
     # $mytext = ereg_replace ("\\\\", "\\\\", $text);
-    $mytext = ereg_replace ("\\\"", "\"", $text);
+    $mytext = ereg_replace ("\\\"", "\"", $text);
     # $mytext = ereg_replace ("'", "\\'", $mytext);
+    #
+    $mytext = ereg_replace ("\'", "\\'", $text);
     return ($mytext);
   }
 ?>