Download & Extend

Nofollowlist doesn't like some links

Project:Nofollow List
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I saw this on ubercart.org the other day. It seems that Nofollowlist isn't expecting three slashes?

warning: parse_url(irc:///ubercart) [function.parse-url]: Unable to parse url in /var/www/vhosts/www.ubercart.org/sites/all/modules/nofollowlist/nofollowlist.module on line 121.

Comments

#1

#2

The url is

#ubercart

The php docs for parse_url say that it's not meant to do validation, so I guess we could do some validation on our own first?

I'm tempted to just ignore this, though, because all we could do is
1. If it's not a URL, don't call parse_url so that we avoid the warning from parse_url
2. Watchdog it

Well, conveniently the error about parse_url already does #2 and if it's set to "log errors only" it's fine.

nobody click here