Skip to content

Commit 1940066

Browse files
author
Serghey Rodin
committed
delete eval from roundcube configs
1 parent 4e81382 commit 1940066

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

upd/fix_roundcube.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Locate roundcube directory
4+
if [ -d '/etc/roundcube' ]; then
5+
rc_dir='/etc/roundcube'
6+
fi
7+
if [ -d '/etc/roundcubemail' ]; then
8+
rc_dir='/etc/roundcubemail'
9+
fi
10+
11+
if [ -z "$rc_dir" ]; then
12+
exit
13+
fi
14+
15+
# Check for eval
16+
cd $rc_dir
17+
for config in $(grep eval *.php |cut -f1 -d:); do
18+
sed -i '/eval/d' $config
19+
done

0 commit comments

Comments
 (0)