]> git.plutz.net Git - cgilite/commitdiff
Fix broken range requests when running in dash
authorPaul Hänsch <paul@plutz.net>
Sun, 14 Jan 2024 21:20:45 +0000 (22:20 +0100)
committerPaul Hänsch <paul@plutz.net>
Sun, 14 Jan 2024 21:20:45 +0000 (22:20 +0100)
file.sh

diff --git a/file.sh b/file.sh
index 20990d36474492f700dd5fc60bafc5dbf12f548b..8d810b5d472b0a43db49181f1820dd5e4bad1d08 100755 (executable)
--- a/file.sh
+++ b/file.sh
@@ -83,7 +83,7 @@ FILE(){
 
   range="${HTTP_RANGE#bytes=}"
   case "$range" in
-    *[^0-9]*-*|*-*[^0-9]*)
+    *[!0-9]*-*|*-*[!0-9]*)
       range=""
       ;;
     *-)