]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix eval of vars incase string has quotes
authorDoug MacEachern <dougm@apache.org>
Fri, 2 Nov 2001 20:09:20 +0000 (20:09 +0000)
committerDoug MacEachern <dougm@apache.org>
Fri, 2 Nov 2001 20:09:20 +0000 (20:09 +0000)
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

support/apxs.in

index c17dc7e2b1138e498c84b6c6005d71d4f9fbfa96..92a4c4111e20848ef792160331ebba3f4241f4c4 100644 (file)
@@ -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;
             }