Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Security fix: prevents empty host from being used
- Loading branch information
1 parent
97515fd
commit 01f47e0
Showing
2 changed files
with
4 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6018,7 +6018,8 @@ void Lua::setParamsTable(lua_State* vm, const char* table_name, | |
| char *_equal; | ||
|
|
||
| if(strncmp(tok, "csrf", strlen("csrf")) /* Do not put csrf into the params table */ | ||
| && (_equal = strchr(tok, '='))) { | ||
| && (_equal = strchr(tok, '=')) | ||
| && (strlen(_equal) > 1)) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
simonemainardi
Author
Contributor
|
||
| char *decoded_buf; | ||
| int len; | ||
|
|
||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@simonemainardi this cuts off some valid empty parameters, like "custom_name"