summaryrefslogtreecommitdiff
path: root/program/include
diff options
context:
space:
mode:
Diffstat (limited to 'program/include')
-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 **************