Ignore:
Timestamp:
Jan 29, 2007, 9:07:37 PM (17 years ago)
Author:
rvelices
Message:

bug 623: Char "+" is not supported in gallery URL (the function url_is_remote
should not check if the url is actually valid but only if it starts with http://)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/branch-1_6/include/functions.inc.php

    r1689 r1765  
    627627function url_is_remote($url)
    628628{
    629   if (preg_match('/^https?:\/\/[~\/\.\w-]+$/', $url))
     629  if ( strncmp($url, 'http://', 7)==0
     630    or strncmp($url, 'https://', 8)==0 )
    630631  {
    631632    return true;
Note: See TracChangeset for help on using the changeset viewer.