From f042e9798f9137063e14322cdc53614d8aa10614 Mon Sep 17 00:00:00 2001 From: bptato Date: Sun, 9 Jun 2024 03:49:12 +0200 Subject: pager: fix broken logic bleh --- src/local/pager.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/local/pager.nim b/src/local/pager.nim index 8076020f..00291e87 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -1862,9 +1862,9 @@ proc handleEvent0(pager: Pager; container: Container; event: ContainerEvent): of cetOpen: let url = event.request.url let sameScheme = container.url.scheme == url.scheme - if event.request.httpMethod != hmGet and (not sameScheme or - container.url.scheme in ["http", "https"] and - url.scheme in ["http", "https"]): + if event.request.httpMethod != hmGet and not sameScheme and + container.url.scheme notin ["http", "https"] and + url.scheme notin ["http", "https"]: pager.alert("Blocked cross-scheme POST: " & $url) return #TODO this is horrible UX, async actions shouldn't block input -- cgit 1.4.1-2-gfad0