Opened 7 years ago
Closed 6 years ago
#1557 closed defect (fixed)
Extra spaces should not cause nginx error
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | 1.14.x |
Keywords: | Cc: | ||
uname -a: | |||
nginx -V: | 1.14.0 |
Description
Shouldn't nginx just ignore those extra spaces and blank lines?
I tried below in the config of nginx 1.14.0:
server {
...
set $testvar1 "testval1";
... 300 blank lines, each with 20 spaces ...
set $testvar2 "testval2";
...
}
nginx configtest says:
nginx: [emerg] too long parameter "
..." started in
Change History (6)
comment:1 by , 6 years ago
Status: | new → accepted |
---|
comment:2 by , 6 years ago
Tried 1.15.2 released this morning and the error is still there.
Manually applied above patch, and the error goes away.
comment:4 by , 6 years ago
Thanks for testing, the patch was submitted for an internal review. Once reviewed, the patch will be committed, and then this ticket will be closed.
Note:
See TracTickets
for help on using tickets.
Please try the following patch: