Changeset 14557


Ignore:
Timestamp:
2007/06/08 20:22:22 (17 years ago)
Author:
adati
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev/html/test/adachi/test4.php

    r14540 r14557  
    11<?php 
    2 $value = true; 
    3 $p = preg_replace("/<script.*?>|<\/script>/", '&lt;script&gt;', $value); 
    42 
    5 var_dump($p); 
     3$str = 'test@<script>alert(document.cookie)</script>.com;'; 
     4$pt = "/<script.*?>|<\/script>/"; 
    65 
     6preg_matche_all($pt, $str, $match) 
     7 
     8//$p = preg_replace("/<script.*?>|<\/script>/", '&lt;script&gt;', $value); 
     9 
     10var_dump($match); 
     11 
Note: See TracChangeset for help on using the changeset viewer.