We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a741da + d2bbcc6 commit eb5e50aCopy full SHA for eb5e50a
bin/dasht-server-http
@@ -75,7 +75,7 @@ url=$(awk '
75
76
# serve translated local file:// URLs over HTTP
77
# (skip the / homepage and /? form submissions)
78
-if ! echo "$url" | grep -q '^/$\|^/?'; then
+if ! test "$url" = / -o -z "${url##/\?*}"; then
79
file=${url%#*} # strip URI fragment, if any
80
81
if test -f "$file"; then
0 commit comments