Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2d95503 authored by Kristian Monsen's avatar Kristian Monsen
Browse files

Fix for 2585858, load invalid urls.

The browser currently does not try to load invalid urls, that can be a problem. Now we only check if the host is correctly encoded.

Change-Id: Ie7380c59d4faab68a2f957e7f1ba8347e15e45a1
parent c58b4232
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -102,8 +102,9 @@ class FrameLoader {
                                com.android.internal.R.string.httpErrorBadUrl));
                return false;
            }
            // Make sure it is correctly URL encoded before sending the request
            if (!URLUtil.verifyURLEncoding(url)) {
            // Make sure the host part of the url is correctly
            // encoded before sending the request
            if (!URLUtil.verifyURLEncoding(mListener.host())) {
                mListener.error(EventHandler.ERROR_BAD_URL,
                        mListener.getContext().getString(
                        com.android.internal.R.string.httpErrorBadUrl));