We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e81382 commit 1940066Copy full SHA for 1940066
upd/fix_roundcube.sh
@@ -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
10
11
+if [ -z "$rc_dir" ]; then
12
+ exit
13
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