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:
b491443
)
Improved escape
author
Joey Schulze
<joey@infodrom.org>
Mon, 29 Jan 2007 16:48:56 +0000
(16:48 +0000)
committer
Joey Schulze
<joey@infodrom.org>
Mon, 29 Jan 2007 16:48:56 +0000
(16:48 +0000)
Styles/phptools.inc
patch
|
blob
|
history
diff --git
a/Styles/phptools.inc
b/Styles/phptools.inc
index
d9a37f5
..
60415f6
100644
(file)
--- a/
Styles/phptools.inc
+++ b/
Styles/phptools.inc
@@
-12,7
+12,7
@@
# $mytext = ereg_replace ("\\\"", "\"", $text);
# $mytext = ereg_replace ("'", "\\'", $mytext);
#
- $mytext =
ereg_replace ("\'", "\\'", $text
);
+ $mytext =
str_replace ("'", "\\'", str_replace ("\\", "\\\\", $text)
);
return ($mytext);
}
?>