Subversion Repositories oidinfo_api

Rev

Rev 13 | Rev 15 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13 Rev 14
Line 823... Line 823...
823
        $asn = preg_replace('|\s+|', '.', $asn);
823
        $asn = preg_replace('|\s+|', '.', $asn);
824
 
824
 
825
        // Apply standardized identifiers (case sensitive)
825
        // Apply standardized identifiers (case sensitive)
826
        $asn .= '.';
826
        $asn .= '.';
827
        foreach ($standardized as $s => $r) {
827
        foreach ($standardized as $s => $r) {
828
                $asn = preg_replace("|^$s|", $r, $asn);
828
                $asn = preg_replace("@^".preg_quote($s,"@")."@", $r, $asn);
829
        }
829
        }
830
        $asn = substr($asn, 0, strlen($asn)-1);
830
        $asn = substr($asn, 0, strlen($asn)-1);
831
 
831
 
832
        // Check if all numbers are OK
832
        // Check if all numbers are OK
833
        // -> every arc must be resolved
833
        // -> every arc must be resolved