Permalink
Browse files

delete eval from roundcube configs

  • Loading branch information...
Serghey Rodin
Serghey Rodin committed May 11, 2018
1 parent 4e81382 commit 19400663ec500b9aa5af6b9a718ecd99c677e8c3
Showing with 19 additions and 0 deletions.
  1. +19 −0 upd/fix_roundcube.sh
@@ -0,0 +1,19 @@
#!/bin/bash
# Locate roundcube directory
if [ -d '/etc/roundcube' ]; then
rc_dir='/etc/roundcube'
fi
if [ -d '/etc/roundcubemail' ]; then
rc_dir='/etc/roundcubemail'
fi
if [ -z "$rc_dir" ]; then
exit
fi
# Check for eval
cd $rc_dir
for config in $(grep eval *.php |cut -f1 -d:); do
sed -i '/eval/d' $config
done

0 comments on commit 1940066

Please sign in to comment.