Rolling back... last patch should go into CVS first
authorNathan Haug
Wed, 30 Aug 2006 05:00:23 +0000 (05:00 +0000)
committerNathan Haug
Wed, 30 Aug 2006 05:00:23 +0000 (05:00 +0000)
link.module

index f7f2196..9d25947 100644 (file)
@@ -420,12 +420,8 @@ function link_validate_link($text) {
   ')'.
     // port number
     '(:([0-9]{1,4}))?'.
-    // the rest of the path
-    "(\/[a-z0-9_\-\.~+%=&,$'():;*@]+)*".
-    // anchors
-    "#?[a-z0-9_\-\.~+%=&,$'():;*@]*".
-    // the query string
-    "(\?[a-z0-9+_\-\.\/%=&,$'():;*@]*)?". //)?". //$-_.+*'()
+  // the rest of the path
+  '(\/[a-z0-9_\-\.~]+)*(\/([a-z0-9_\-\.]*)(\?[a-z0-9+_\-\.\/%=&,:]*)?)?'.
     // forward slash 0 or 1 times
     '(\/)?'.
     // end of the expression, case insensitive