Add ref to alias_traversal

This commit is contained in:
Maniack Crudelis 2017-12-30 00:16:18 +01:00
parent 4317cbdb6b
commit d692432d6b

View file

@ -360,7 +360,7 @@ CHECK_URL () {
# Detect the issue alias_traversal, https://github.com/yandex/gixy/blob/master/docs/en/plugins/aliastraversal.md
curl --location --insecure --silent $check_domain$check_path../html/index.nginx-debian.html \
| grep "title" | grep --quiet "Welcome to nginx on Debian" \
&& ECHO_FORMAT "Issue alias_traversal detected ! Please see here [...] to fix that.\n" "red" "bold"
&& ECHO_FORMAT "Issue alias_traversal detected ! Please see here https://github.com/YunoHost/example_ynh/pull/45 to fix that.\n" "red" "bold"
# Remove the entries in /etc/hosts for the test domain
sudo sed --in-place '/#package_check/d' /etc/hosts