Skip to content

Commit 806e3aa

Browse files
committed
Update INSTALL script with security fix
1 parent c64f28e commit 806e3aa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

install

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,14 @@ function ee_update_latest()
454454
fi
455455
fi
456456

457+
#Fix Security Issue. commit #c64f28e
458+
if [ -f /etc/nginx/common/locations.conf ]; then
459+
grep -0 '$request_uri ~\* \"^.+(readme|license|example)\\.(txt|html)$\"' /etc/nginx/common/locations.conf &>> /dev/null
460+
if [ $? -eq 0 ]; then
461+
sed -i 's/$request_uri ~\* \"^.+(readme|license|example)\\.(txt|html)$\"/$uri ~\* \"^.+(readme|license|example)\\.(txt|html)$\"/g' /etc/nginx/common/locations.conf &>> /dev/null
462+
fi
463+
fi
464+
457465
# Fix for 3.3.2 renamed nginx.conf
458466
nginx -V 2>&1 &>>/dev/null
459467
if [[ $? -eq 0 ]]; then

0 commit comments

Comments
 (0)