Ignore:
Timestamp:
2008/07/28 13:45:24 (16 years ago)
Author:
adachi
Message:

#321 scriptタグが小文字しかエスケープされない不具合の修正

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2/data/smarty_extends/modifier.script_escape.php

    r15532 r17464  
    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.