Changeset 14928
- Timestamp:
- 2007/06/26 15:10:47 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/rel/data/smarty_extends/modifier.script_escape.php
r14529 r14928 8 8 function smarty_modifier_script_escape($value) { 9 9 10 if (is_array($value)) {return $value;}10 if (is_array($value)) return $value; 11 11 12 $pattern = "/<script.*?>|<\/script> /";13 $convert = "# ####";12 $pattern = "/<script.*?>|<\/script>|javascript:/"; 13 $convert = "#script tag escaped#"; 14 14 15 15 if ( preg_match_all($pattern, $value, $matches) ) {
Note: See TracChangeset
for help on using the changeset viewer.