zapret-lib: dissect_url accept # and ? chars as domain end

This commit is contained in:
bol-van committed 2026-09-16 16:14:48 +03:00
1 parent 2efdb70b1c
commit 7119ffce54
1 file changed
+1 -1
+1 -1
View File
@@ -1863,7 +1863,7 @@ function dissect_url(url)
creds = string.sub(url,p1,pend-1)
p1 = pend+1
end
pstart,pend = string.find(url,"/",p1,true)
pstart,pend = string.find(url,"[/?#]",p1)
if pend then
if pend==pb then
uri = string.sub(url,pb)