From 5395f3412fe3f8e7ff3f4a72d530372597252503 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 19 Sep 2024 22:53:49 +0100 Subject: [PATCH] Ensure url scheme/host are in lowercase before passing to hs.urlevent callback. Closes #3686 --- extensions/urlevent/liburlevent.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/urlevent/liburlevent.m b/extensions/urlevent/liburlevent.m index ef8904fda..b2bc9b411 100644 --- a/extensions/urlevent/liburlevent.m +++ b/extensions/urlevent/liburlevent.m @@ -147,8 +147,8 @@ - (void)callbackWithURL:(NSString *)openUrl senderPID:(pid_t)pid { } [skin pushLuaRef:refTable ref:self.fnCallback]; - [skin pushNSObject:[url scheme]]; - [skin pushNSObject:[url host]]; + [skin pushNSObject:url.scheme.lowercaseString]; + [skin pushNSObject:url.host.lowercaseString]; [skin pushNSObject:pairs]; [skin pushNSObject:[url absoluteString]]; lua_pushinteger(skin.L, pid);