Ignore:
Timestamp:
Mar 5, 2010, 1:53:30 PM (15 years ago)
Author:
roby
Message:

Gestione charset con query mysql e sostituzione funzioni ereg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/modules/Elezioni/ele_come.php

    r2 r23  
    138138
    139139$temp=$title.$preamble.$content;
    140         if (eregi("script",$temp)) die("La parola script e' proibita, devi toglierla dal testo.");
     140        if (preg_match("/script/i",$temp)) die("La parola script e' proibita, devi toglierla dal testo.");
    141141    $result = mysql_query("update ".$prefix.$tab." set title='$title', preamble='$preamble', content='$content' WHERE mid='$mid' AND id_cons='$id_cons'", $dbi);
    142142    Header("Location: admin.php?op=$op&vai=come&id_cons_gen=$id_cons_gen");
Note: See TracChangeset for help on using the changeset viewer.