Ignore:
Timestamp:
Aug 8, 2019 10:03:59 PM (5 years ago)
Author:
anonymous
Message:

Add unicode flag (/u) to preg_* patterns. Remove usage of create_function().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Validator.inc.php

    r635 r696  
    453453        $app =& App::getInstance();
    454454        // Get rid of any non-digits
    455         $cc_num = preg_replace('/[^\d]/', '', $val);
     455        $cc_num = preg_replace('/[^\d]/u', '', $val);
    456456
    457457        // Perform card-specific checks, if applicable
Note: See TracChangeset for help on using the changeset viewer.