Commit 5258bb0f58afbb1e18e09816f7f4a70eec8541ff
1 parent
a8982662
KTS-2178
"cross site scripting" Implemented. Reviewed By: Kevin Fourie git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@6913 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
13 additions
and
0 deletions
thirdparty/Smarty/plugins/modifier.sanitize_input.php
0 → 100644
| 1 | +<?php | |
| 2 | + | |
| 3 | +function smarty_modifier_sanitize_input($string, $esc_type = 'html', $charset='UTF-8') | |
| 4 | +{ | |
| 5 | + $string = mb_ereg_replace("'","'", $string); | |
| 6 | + $string = mb_ereg_replace('"',""", $string); | |
| 7 | + $string = mb_ereg_replace('<',"<", $string); | |
| 8 | + $string = mb_ereg_replace('>',">", $string); | |
| 9 | + return $string; | |
| 10 | +} | |
| 11 | + | |
| 12 | + | |
| 13 | +?> | ... | ... |