Skip to content
Snippets Groups Projects
Commit e73e5506 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Reject empty IDs

parent b303534f
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ fi
# That doesn't look like client ID (a hexadecimal number). That is likely attempt to trick us
# to overwrite some unrelated files. Of course we refuse to do that.
if echo "$CLIENT_ID" | grep -q '[^0-9a-fA-F]' ; then
if [ -z "$CLIENT_ID" ] || echo "$CLIENT_ID" | grep -q '[^0-9a-fA-F]' ; then
echo 'Status: 403 Forbidden'
echo
exit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment