Changeset 1550 in ExiteCMS for trunk/includes/core_functions.php


Ignore:
Timestamp:
07/27/08 14:26:17 (4 years ago)
Author:
root
Message:

Fixed country code and flag caching issue due to an array index overflow. Fixed incorrect wikilink parsing (missing some works, parsing URL's in [img] tags). Fixed isURL() not accepting a % sign in the path of an URL

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/core_functions.php

    r1522 r1550  
    385385    $urlregex .= "[a-z0-9+\$_-]+(\.[a-z0-9+\$_-]+)*";                           // HOSTNAME or IP 
    386386    $urlregex .= "(\:[0-9]{2,5})?";                                             // PORT (optional) 
    387     $urlregex .= "(\/([a-z0-9+\$_-]\.?)+)*\/?";                                 // PATH (optional) 
     387    $urlregex .= "(\/([a-z0-9+\$_%-]\.?)+)*\/?";                                // PATH (optional) 
    388388    $urlregex .= "(\?[a-z+&\$_.-][a-z0-9;:@/&%=+\$_.-]*)?";                     // GET querystring (optional) 
    389389    $urlregex .= "(#[a-z_.-][a-z0-9+\$_.-]*)?\$";                               // ANCHOR (optional) 
Note: See TracChangeset for help on using the changeset viewer.