You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by do...@apache.org on 2001/11/02 21:09:21 UTC

cvs commit: httpd-2.0/support apxs.in

dougm       01/11/02 12:09:21

  Modified:    support  apxs.in
  Log:
  fix eval of vars incase string has quotes
  example: CFLAGS = -DSUEXEC_BIN='"bin/suexec"
  
  Revision  Changes    Path
  1.29      +2 -2      httpd-2.0/support/apxs.in
  
  Index: apxs.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/support/apxs.in,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- apxs.in	2001/09/23 18:01:15	1.28
  +++ apxs.in	2001/11/02 20:09:20	1.29
  @@ -262,7 +262,7 @@
                   ? $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 @@
               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;
               }