summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-11-22 11:42:37 +0000
committerthomascube <thomas@roundcube.net>2006-11-22 11:42:37 +0000
commite34ae17809c3dff8ed870405ffed4e0077cb8512 (patch)
treeab8abe4cd31c0702cb60a2c550a8f650c07d4758 /program
parent0023c18291a077d983e457f07f59108338d17f8f (diff)
Fixed XSS vulnerability (Bug #1484109)
Diffstat (limited to 'program')
-rw-r--r--program/include/main.inc8
1 files changed, 7 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index da449c64c..55336fd30 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -1063,7 +1063,13 @@ function get_input_value($fname, $source, $allow_html=FALSE, $charset=NULL)
return $value;
}
-
+/**
+ * Remove single and double quotes from given string
+ */
+function strip_quotes($str)
+{
+ return preg_replace('/[\'"]/', '', $str);
+}
// ************** template parsing and gui functions **************