diff options
author | thomascube <thomas@roundcube.net> | 2006-11-22 11:42:37 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2006-11-22 11:42:37 +0000 |
commit | e34ae17809c3dff8ed870405ffed4e0077cb8512 (patch) | |
tree | ab8abe4cd31c0702cb60a2c550a8f650c07d4758 /program/include/main.inc | |
parent | 0023c18291a077d983e457f07f59108338d17f8f (diff) |
Fixed XSS vulnerability (Bug #1484109)
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 8 |
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 ************** |