From f29be470b3646d5dbfdf68f867b9d32505881602 Mon Sep 17 00:00:00 2001 From: Måns Rullgård Date: Tue, 20 Jul 2010 22:02:16 +0000 Subject: configure: make sh_quote() more robust Originally committed as revision 24376 to svn://svn.ffmpeg.org/ffmpeg/trunk --- configure | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure b/configure index 898000438f..30358391de 100755 --- a/configure +++ b/configure @@ -304,7 +304,7 @@ c_escape(){ sh_quote(){ v=$(echo "$1" | sed "s/'/'\\\\''/g") - test "$v" = "${v#*[ |&;<>()$\`\\\"\'*?\[\]#~=%]}" || v="'$v'" + test "x$v" = "x${v#*[^A-Za-z0-9_/.+-]}" || v="'$v'" echo "$v" } -- cgit v1.2.3