fix URL detection with double urls like "http://www.foo.barhttp://foo.bar/"
Differential Revision: https://phabricator.kde.org/D8401