From aeb01bef502c8d897850290a04e4726e883df0da Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Sun, 13 Mar 2011 18:40:31 +0000 Subject: [PATCH] =?UTF-8?q?Correction=20d'un=20bug=20et=20mise=20en=20plac?= =?UTF-8?q?e=20d'une=20securit=C3=A9e=20sur=20les=20symlinks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/alternc/apache2.conf | 2 +- src/update_domains.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/etc/alternc/apache2.conf b/etc/alternc/apache2.conf index 47ef014c..fa8ef09a 100644 --- a/etc/alternc/apache2.conf +++ b/etc/alternc/apache2.conf @@ -40,7 +40,7 @@ Alias /phpmyadmin /usr/share/phpmyadmin AllowOverride AuthConfig FileInfo Limit Options Indexes - Options Indexes Includes FollowSymLinks MultiViews + Options Indexes Includes -FollowSymLinks MultiViews Order allow,deny Allow from all php_admin_flag safe_mode_gid on diff --git a/src/update_domains.sh b/src/update_domains.sh index 001facc5..29d0e1d7 100644 --- a/src/update_domains.sh +++ b/src/update_domains.sh @@ -20,7 +20,7 @@ LOCK_FILE="$ALTERNC_LOC/bureau/cron.lock" OLDIFS="$IFS" NEWIFS=" " RELOAD_ZONES="" -RELOAD_WEB="" +RELOAD_WEB=false B="ยตยตยงยง" # Strange letters to make split in query # Somes check before start operations @@ -111,7 +111,7 @@ for dom in $( mysql_query "select domaine from domaines where dns_action = 'DELE done -if [ ! -z $RELOAD_WEB ] ; then +if [ $RELOAD_WEB ] ; then RELOAD_ZONES="$RELOAD_ZONES apache" # Concat the apaches files