PHP Warning: Invalid argument supplied for foreach() in libraries/joomla/string/string.php on line 970
In addition, under no circumstance the function was able to return null.
I've updated the function to reflect its description and return false in case of badly formed URL.
@test successful thanks @demis-palma
@note the same code is allready in staging so it is a 2.5.x only issue.
You may blame the J!Tracker Application for transmitting this comment.