#3127 properly parse the theme query

This commit is contained in:
Hivert Quentin committed 2026-11-11 19:36:41 +01:00
1 parent c9d121afdb
commit a961d70461
3 files changed
+19 -1

No files matched your search

+3
View File
@@ -745,6 +745,9 @@ static SoProduct *commonProduct = nil;
theme = [[context request] formValueForKey: @"theme"];
if ([theme length])
{
// The value is decoded: encode it again so that it can't inject
// characters (eg. CR/LF) into the Location header
theme = [theme stringByEscapingURL];
url = [NSURL URLWithString: newLocation];
query = [url query];
if ([query length])