Skip to content

Commit

Permalink
fix(core): Add '?' char as end detection of appName in URI. Fixes #5793.
Browse files Browse the repository at this point in the history
  • Loading branch information
WoodySlum committed Feb 28, 2024
1 parent 081fdd1 commit b8aa1d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sope-appserver/NGObjWeb/WORequest.m
Expand Up @@ -183,14 +183,19 @@ - (void)_parseURI {

uri++; // skip '/'
start = uri;
while ((*uri != '\0') && (*uri != '/') && (*uri != '.'))
while ((*uri != '\0') && (*uri != '/') && (*uri != '.') && (*uri != '?'))
uri++;

if (*uri == '\0') {
self->appName =
[[NSString alloc] initWithCString:start length:(uri - start)];
goto done;
}
else if (*uri == '?') {
self->appName =
[[NSString alloc] initWithCString:start length:(uri - start)];
goto done;
}
else if (*uri == '.') {
self->appName =
[[NSString alloc] initWithCString:start length:(uri - start)];
Expand Down

0 comments on commit b8aa1d9

Please sign in to comment.