Changeset 10457


Ignore:
Timestamp:
04/17/11 23:57:58 (9 years ago)
Author:
LucMorizur
Message:

Replace deprecated function ereg() with preg_match()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/event_cats/include/evntcats_admin_funcs.inc.php

    r8956 r10457  
    403403      if ( 
    404404        !isset($_POST['ec_in_up_code']) or 
    405         !ereg('^[a-zA-Z0-9_-]{4,32}$', $_POST['ec_in_up_code']) 
     405        !preg_match('/^[a-zA-Z0-9_-]{4,32}$/', $_POST['ec_in_up_code']) 
    406406      ) return ec_end1('ec_in_up_code', 'Improper code : '); 
    407407      else $ec_code = $_POST['ec_in_up_code']; 
Note: See TracChangeset for help on using the changeset viewer.