projects
/
infodrom.org
/
service.infodrom.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4905650
)
Looks like the quoting needs to be done differently
author
Joey Schulze
<joey@infodrom.org>
Mon, 23 Feb 2004 17:15:21 +0000
(17:15 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 23 Feb 2004 17:15:21 +0000
(17:15 +0000)
Styles/phptools.inc
patch
|
blob
|
history
diff --git
a/Styles/phptools.inc
b/Styles/phptools.inc
index
4677fe6
..
d9a37f5
100644
(file)
--- a/
Styles/phptools.inc
+++ b/
Styles/phptools.inc
@@
-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);
}
?>