'#!/bin/bash
read -r req || exit 0
cr=$(printf '\r')
req="${req%$cr}"
req="${req//./}"
req="${req//\//}"
req="${req//[!a-zA-Z0-9_]/}"
[ -z "$req" ] && req="index"
f="/home/user/Public/$req"
[ -f "$f" ] && /bin/cat "$f"
exit 0
'#!/bin/bash
read -r req || exit 0
cr=$(printf '\r')
req="${req%$cr}"
req="${req//./}"
req="${req//\//}"
req="${req//[!a-zA-Z0-9_]/}"
[ -z "$req" ] && req="index"
f="/home/user/Public/$req"
[ -f "$f" ] && /bin/cat "$f"
exit 0