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 Sep 19, 2024
1 parent 62e13ab commit b621ad5
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];

Check warning on line 151 in extensions/urlevent/liburlevent.m

View check run for this annotation

Codecov / codecov/patch

extensions/urlevent/liburlevent.m#L150-L151

Added lines #L150 - L151 were not covered by tests
[skin pushNSObject:pairs];
[skin pushNSObject:[url absoluteString]];
lua_pushinteger(skin.L, pid);
Expand Down

0 comments on commit b621ad5

Please sign in to comment.