summaryrefslogtreecommitdiffstats
path: root/code/util.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'code/util.inc.php')
-rw-r--r--code/util.inc.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/code/util.inc.php b/code/util.inc.php
index c2a8adf..724f8bd 100644
--- a/code/util.inc.php
+++ b/code/util.inc.php
@@ -12,5 +12,16 @@
return strtr($string, $tr);
}
+
+ if(get_magic_quotes_gpc()) {
+ function Unquote($string) {
+ return stripslashes($string);
+ }
+ }
+ else {
+ function Unquote($string) {
+ return $string;
+ }
+ }
}
?>