Show
Ignore:
Timestamp:
05/17/07 16:25:43 (5 years ago)
Author:
fproulx
Message:

2007-05-17 François Proulx <francois.proulx@…>

  • WARNING: This has not been fully tested. Full testing to be completed on 2006-05-18 but I'm pretty confident that it works pretty well.
  • Added automatic resize on Avatars
  • Added FavoriteHotspots? content (mostly used for Profiles)
  • Added new features to Content and File
  • Fixed URL regexp bug in HyperlinkUtils?
  • Updated French translations
  • Updates profiles template
  • TODO: Add getNewUI et processNewUI to FavoriteHotspots? to simplify input
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/classes/HyperLinkUtils.php

    r1196 r1226  
    6565     * HREF constructs 
    6666     * @return array of URLs 
    67      
     67 
    6868     */ 
    6969    private static function findHyperLinks(& $string) { 
     
    101101        } 
    102102    } 
    103      
     103 
    104104    /** Is the entered URL a valid URL? 
    105105     * @param $url 
     
    108108    static public function validateURL($url) { 
    109109        $retval = false; 
    110         if (!preg_match('/^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\//i', $url, $m)) { 
     110        if (!preg_match('/^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?(\/)?/i', $url, $m)) { 
    111111            //URL isn't valid 
    112112        } else {