From: Doug MacEachern Date: Fri, 2 Nov 2001 20:09:20 +0000 (+0000) Subject: fix eval of vars incase string has quotes X-Git-Tag: 2.0.28~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6c79d30eaf5d6a98cf88a8a6c049e1bbd072fffe;p=thirdparty%2Fapache%2Fhttpd.git fix eval of vars incase string has quotes example: CFLAGS = -DSUEXEC_BIN='"bin/suexec" PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91733 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/support/apxs.in b/support/apxs.in index c17dc7e2b11..92a4c4111e2 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -262,7 +262,7 @@ sub get_vars { ? $config_vars{$arg} : $config_vars{lc $arg}; $val =~ s/[()]//g; - $result .= eval qq("$val"); + $result .= eval "qq($val)"; $result .= ";;"; $ok = 1; } @@ -270,7 +270,7 @@ sub get_vars { if (exists $internal_vars{$arg} or exists $internal_vars{lc $arg}) { my $val = exists $internal_vars{$arg} ? $arg : lc $arg; $val = eval "\$CFG_$val"; - $result .= eval qq("$val"); + $result .= eval "qq($val)"; $result .= ";;"; $ok = 1; }