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

Commit 135e24c2 authored by Patrick Scott's avatar Patrick Scott
Browse files

Add '_' to the allowable characters in a host name.

This does not fix the underscore problem in host names but it moves it from a
Browser issue to a libc issue.
parent d004ee1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ public class WebAddress {
    static Pattern sAddressPattern = Pattern.compile(
            /* scheme    */ "(?:(http|HTTP|https|HTTPS|file|FILE)\\:\\/\\/)?" +
            /* authority */ "(?:([-A-Za-z0-9$_.+!*'(),;?&=]+(?:\\:[-A-Za-z0-9$_.+!*'(),;?&=]+)?)@)?" +
            /* host      */ "([-A-Za-z0-9%]+(?:\\.[-A-Za-z0-9%]+)*)?" +
            /* host      */ "([-A-Za-z0-9%_]+(?:\\.[-A-Za-z0-9%_]+)*)?" +
            /* port      */ "(?:\\:([0-9]+))?" +
            /* path      */ "(\\/?.*)?");