Changeset 1226 for trunk/wifidog-auth/wifidog/classes/HyperLinkUtils.php
- Timestamp:
- 05/17/07 16:25:43 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/wifidog/classes/HyperLinkUtils.php
r1196 r1226 65 65 * HREF constructs 66 66 * @return array of URLs 67 67 68 68 */ 69 69 private static function findHyperLinks(& $string) { … … 101 101 } 102 102 } 103 103 104 104 /** Is the entered URL a valid URL? 105 105 * @param $url … … 108 108 static public function validateURL($url) { 109 109 $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)) { 111 111 //URL isn't valid 112 112 } else {
