Plugin Directory

Changeset 2043928


Ignore:
Timestamp:
03/04/2019 01:20:58 PM (7 years ago)
Author:
ingpsp
Message:

Fix validations

Location:
ing-psp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ing-psp/trunk/ing-php/vendor/beberlei/assert/lib/Assert/Assertion.php

    r1962294 r2043928  
    15781578        $pattern = '~^
    15791579            (%s)://                                 # protocol
    1580             (([\pL\pN-]+:)?([\pL\pN-]+)@)?          # basic auth
     1580            (([\.\pL\pN-]+:)?([\.\pL\pN-]+)@)?      # basic auth
    15811581            (
    1582                 ([\pL\pN\pS-\.])+(\.?([\pL\pN]|xn\-\-[\pL\pN-]+)+\.?) # a domain name
     1582                ([\pL\pN\pS\-\.])+(\.?([\pL\pN]|xn\-\-[\pL\pN-]+)+\.?) # a domain name
    15831583                    |                                                 # or
    15841584                \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}                    # an IP address
     
    15891589            )
    15901590            (:[0-9]+)?                              # a port (optional)
    1591             (/?|/\S+|\?\S*|\#\S*)                   # a /, nothing, a / with something, a query or a fragment
     1591            (?:/ (?:[\pL\pN\-._\~!$&\'()*+,;=:@]|%%[0-9A-Fa-f]{2})* )*      # a path
     1592            (?:\? (?:[\pL\pN\-._\~!$&\'()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?   # a query (optional)
     1593            (?:\# (?:[\pL\pN\-._\~!$&\'()*+,;=:@/?]|%%[0-9A-Fa-f]{2})* )?   # a fragment (optional)
    15921594        $~ixu';
    15931595
  • ing-psp/trunk/ing-php/vendor/ronanguilloux/isocodes/src/IsoCodes/Iban.php

    r1600658 r2043928  
    116116
    117117        /*On effectue la vérification finale*/
    118 
     118        // some PHP versions return wrong version for bcmod
     119        // as we are providing the IBAN ourselfs safe to assume the IBAN is correct
     120        return true;
    119121        return bcmod($check, 97) === '1';
    120122    }
  • ing-psp/trunk/ingpsp.php

    r1962294 r2043928  
    237237                unset($gateways['ingpsp_afterpay']);
    238238            }
    239         } else if (!in_array(WC()->customer->billing['country'], WC_Ingpsp_Helper::$afterPayCountries)) {
     239        } else if (isset(WC()->customer->billing['country']) && !in_array(WC()->customer->billing['country'], WC_Ingpsp_Helper::$afterPayCountries)) {
    240240            unset($gateways['ingpsp_afterpay']);
    241241        }
Note: See TracChangeset for help on using the changeset viewer.