Skip to content

Commit

Permalink
Ensure url scheme/host are in lowercase before passing to hs.urlevent…
Browse files Browse the repository at this point in the history
… callback. Closes #3686
  • Loading branch information
cmsj committed Nov 9, 2024
1 parent d0c7fcf commit 5395f34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/urlevent/liburlevent.m
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5395f34

Please sign in to comment.