Merge branch 'jk/xstrfmt'
[gitweb.git] / t / t5560-http-backend-noserver.sh
index 1e25128ad30c0134313da151bae81ef32485d0dc..aa73eeaef82adff56083fdc2d5d35d599b73edee 100755 (executable)
@@ -13,8 +13,8 @@ fi
 
 run_backend() {
        echo "$2" |
-       QUERY_STRING="${1#*\?}" \
-       PATH_TRANSLATED="$HTTPD_DOCUMENT_ROOT_PATH/${1%%\?*}" \
+       QUERY_STRING="${1#*[?]}" \
+       PATH_TRANSLATED="$HTTPD_DOCUMENT_ROOT_PATH/${1%%[?]*}" \
        git http-backend >act.out 2>act.err
 }