]> granicus.if.org Git - apache/commit
core: Fix incorrect substitution of env vars in directives containing multiple env...
authorHank Ibell <hwibell@apache.org>
Wed, 5 Dec 2018 19:13:38 +0000 (19:13 +0000)
committerHank Ibell <hwibell@apache.org>
Wed, 5 Dec 2018 19:13:38 +0000 (19:13 +0000)
commitfc7fcd0d04c3c61830f3802780974eb3a5d4de2d
tree89385d0f1e86653f351c9863779ee019d9ab3071
parent81544f21554d8ea19b41b3c39c01664b2d84bbb0
core: Fix incorrect substitution of env vars in directives containing multiple env vars.

In ap_resolve_env(), the string returned from getenv() should be copied since
the returned string may be statically allocated.

This fixes an issue where the value for the last env var is substituted for all
env vars in a directive containing multiple env vars.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1848236 13f79535-47bb-0310-9956-ffa450edef68
CHANGES
server/core.c