Commit 6be451e7 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Disallow space in uris

parent 9383fd40
Pipeline #79217 failed with stage
in 60 minutes and 1 second
......@@ -570,7 +570,9 @@ class ToolbarTitle(Gtk.Bin):
GLib.idle_add(self.__window.close_popovers)
parsed = urlparse(uri)
# Search a missing scheme
if uri.find(".") != -1 and not parsed.scheme:
if uri.find(".") != -1 and\
uri.find(" ") == -1 and\
not parsed.scheme:
# Add missing www.
if not uri.startswith("www."):
db_uri = App().history.get_match("://www." + uri)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment