]> git.kaiwu.me - njs.git/commit
Modules: improved checking for duplicate js_set variables.
authorDmitry Volyntsev <xeioex@nginx.com>
Tue, 23 Apr 2024 00:51:45 +0000 (17:51 -0700)
committerDmitry Volyntsev <xeioex@nginx.com>
Tue, 23 Apr 2024 00:51:45 +0000 (17:51 -0700)
commit5ab8d47c6d59ce21feae1541d4b7acb1289570dc
tree667f251a8286c035f9d1a661eba35478478d7f6c
parent8b22e722b345c383e789e98533200e98975e5425
Modules: improved checking for duplicate js_set variables.

Since 6fb1aca4eeaf (0.8.4) the identical js_set variables introduced as
a part of an include file that is shared amongst multiple vhosts are
rejected during configuration parsing.

The patch ignores duplicate js_set variables when they refer to the same
JS function.

This fixes #705 issue on Github.
nginx/ngx_http_js_module.c
nginx/ngx_stream_js_module.c
nginx/t/js_dup_set.t [new file with mode: 0644]
nginx/t/stream_js_dup_set.t [new file with mode: 0644]