Fix KUrl::isRelativeUrl to allow all RFC3986 characters in scheme.

Review Request #129208 - Created Oct. 17, 2016 and submitted

Information
Gerhard Gappmeier
kdelibs
KDE/4.14
Reviewers
kdelibs
thiago
RFC3986 defines the following syntax for URI schemes
scheme = alpha *( alpha | digit | "+" | "-" | "." )

The '.' was missing which leaded to the problem that
xdg-open opc.tcp://localhost didn't work.

Background:
xdg-open calls kde-open which then uses KUrl and so leaded to this
problem. Of course this bug may affect also many other locations
using KUrl::isRelativeUrl.

This fix also adds a unit test to test the fix and avoid future
regressions.

  
Aleix Pol Gonzalez
Gerhard Gappmeier
David Faure
Gerhard Gappmeier
Review request changed

Status: Closed (submitted)

Change Summary:

Submitted with commit a0f36a80ac76a0b23f1bf53fc43bd6e8191048b1 by Albert Astals Cid on behalf of Gerhard Gappmeier to branch KDE/4.14.
Loading...