mirror of
https://gitlab.com/niansa/simpsh-httpd.git
synced 2025-03-06 20:53:36 +01:00
Update urlcheck.sh
This commit is contained in:
parent
8d57be4511
commit
ada0dfff68
1 changed files with 8 additions and 1 deletions
|
@ -1,6 +1,13 @@
|
|||
#! /bin/bash
|
||||
|
||||
# Überprüfe auf Versuche, das restliche Dateisystem zu lesen
|
||||
# Blockiere Versuche, das restliche Dateisystem zu lesen
|
||||
if [ "$URL" = "*..*" ]; then
|
||||
export URL='/'
|
||||
export FILE="$FILES"
|
||||
fi
|
||||
|
||||
# Verhindere "/"-bug
|
||||
if [ -d "$FILE" -a "$FILE" != "*/" ]; then
|
||||
export URL="$URL"'/'
|
||||
export FILE="$FILE"'/'
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue