1
0
Fork 0
mirror of https://gitlab.com/niansa/simpsh-httpd.git synced 2025-03-06 20:53:36 +01:00
simpsh-httpd/urlcheck.sh
2017-03-09 10:37:54 +01:00

13 lines
255 B
Bash

#! /bin/bash
# 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