Ignore:
Timestamp:
2008/08/29 00:10:25 (16 years ago)
Author:
Seasoft
Message:

merge r17463,r17464,r17465,r17468,r17472,r17473,r17493,r17497,r17500,r17501,r17504

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/smarty_extends/modifier.script_escape.php

    r15532 r17579  
    77 */ 
    88function smarty_modifier_script_escape($value) { 
    9      
     9 
    1010    if (is_array($value)) return $value; 
    11      
    12     $pattern = "/<script.*?>|<\/script>|javascript:/"; 
     11 
     12    $pattern = "/<script.*?>|<\/script>|javascript:/i"; 
    1313    $convert = "#script tag escaped#"; 
    14      
     14 
    1515    if ( preg_match_all($pattern, $value, $matches) ) { 
    1616        return preg_replace($pattern, $convert, $value); 
Note: See TracChangeset for help on using the changeset viewer.