Ignore:
Timestamp:
May 4, 2020 2:25:31 AM (4 years ago)
Author:
anonymous
Message:

Use the /u regex modifier only when using UTF-8. Disable indexed array key removal from URL query args.

File:
1 edited

Legend:

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

    r696 r724  
    452452    {
    453453        $app =& App::getInstance();
     454
    454455        // Get rid of any non-digits
    455         $cc_num = preg_replace('/[^\d]/u', '', $val);
     456        $cc_num = preg_replace('/[^\d]/' . $app->getParam('preg_u'), '', $val);
    456457
    457458        // Perform card-specific checks, if applicable
Note: See TracChangeset for help on using the changeset viewer.