- Timestamp:
- 2008/07/28 13:45:24 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2/data/smarty_extends/modifier.script_escape.php
r15532 r17464 7 7 */ 8 8 function smarty_modifier_script_escape($value) { 9 9 10 10 if (is_array($value)) return $value; 11 12 $pattern = "/<script.*?>|<\/script>|javascript:/ ";11 12 $pattern = "/<script.*?>|<\/script>|javascript:/i"; 13 13 $convert = "#script tag escaped#"; 14 14 15 15 if ( preg_match_all($pattern, $value, $matches) ) { 16 16 return preg_replace($pattern, $convert, $value);
Note: See TracChangeset
for help on using the changeset viewer.