URL:
- Code: Select all
http://192.168.2.7/~username/forum/styles/prosilver/imageset/site_logo.gif
=> "The URL you specified is invalid."
The "problem" seems to be the \.[a-z]{2,4} of the regex in includes/functions_user.php, line 1599:
- Code: Select all
if (!preg_match('#^(http|https|ftp)://(.*?\.)*?[a-z0-9\-]+?\.[a-z]{2,4}:?([0-9]*?).*?\.(gif|jpg|jpeg|png)$#i', $data['remotelink']))
I'm no regex expert, but removing it helped, i.e. that should be optional or so if possible.
Is that a bug or intended (i.e. "We don't allow linking to IP-only servers")?