@anonymous-piwik-user opened this Issue on October 28th 2008

Hi, "~" is common in personal webpages on UNIX, should be accepted too:

--- plugins/SitesManager/API.php.orig 2008-06-26 01:57:04.000000000 +0200
+++ plugins/SitesManager/API.php 2008-10-28 10:36:03.000000000 +0100
@@ -447,7 +447,7 @@
*/
static private function isValidUrl( $url )
{

  • return ereg('^http[s]?://([A-Za-z0-9\/_.:-])*$', $url);
  •         return ereg('^http[s]?://([A-Za-z0-9\/_.:-~])*$', $url);
    }
    
    /**
@anonymous-piwik-user commented on October 28th 2008

Sorry, better formatted:

--- API.php.orig        2008-06-26 01:57:04.000000000 +0200
+++ API.php     2008-10-28 10:36:03.000000000 +0100
@@ -447,7 +447,7 @@
         */
        static private function isValidUrl( $url )
        {
-               return ereg('^http[s]?://([A-Za-z0-9\/_.:-])*$', $url);
+               return ereg('^http[s]?://([A-Za-z0-9\/_.:-~])*$', $url);
        }

        /**
@mattab commented on October 28th 2008 Member

already fixed in svn :) thx

This Issue was closed on October 28th 2008
Powered by GitHub Issue Mirror