summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-07-20 22:02:16 +0000
committerMåns Rullgård <mans@mansr.com>2010-07-20 22:02:16 +0000
commitf29be470b3646d5dbfdf68f867b9d32505881602 (patch)
treee5199b045297a101b6a9734a3e29577d9875bd00 /configure
parentfd7242ddbdd3bb3bedc3b520d8c80f4512742074 (diff)
configure: make sh_quote() more robust
Originally committed as revision 24376 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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"
}