phpmyadmin/scripts/locales-contributors
Michal Čihař f2bfa7d745 Avoid running shell scripts as CGI
There is really no reason for that besides misconfigured servers.

This is followup for PMASA-2016-54

Signed-off-by: Michal Čihař <michal@cihar.com>
2016-12-08 11:41:42 +01:00

12 lines
261 B
Bash
Executable File

#!/bin/sh
# Do not run as CGI
if [ -n "$GATEWAY_INTERFACE" ] ; then
echo 'Can not invoke as CGI!'
exit 1
fi
for x in po/*.po ; do
grep 'Team' $x | sed 's/.*: \(.*\)<.*/\1/'
git shortlog -sne --no-merges -- $x | grep '^ [ 0-9][0-9]\{3\}'
done