File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,12 @@ if [ -z "$VPN_IPSEC_PSK" ] || [ -z "$VPN_USER" ] || [ -z "$VPN_PASSWORD" ]; then
82
82
exiterr " All VPN credentials must be specified. Edit the script and re-enter them."
83
83
fi
84
84
85
+ case " $VPN_IPSEC_PSK $VPN_USER $VPN_PASSWORD " in
86
+ * [\\\"\' ]* )
87
+ exiterr " VPN credentials must not contain any of these characters: \\ \" '"
88
+ ;;
89
+ esac
90
+
85
91
if [ " $( sed ' s/\..*//' /etc/debian_version 2> /dev/null) " = " 7" ]; then
86
92
cat << 'EOF '
87
93
IMPORTANT: Workaround required for Debian 7 (Wheezy).
Original file line number Diff line number Diff line change @@ -85,6 +85,12 @@ if [ -z "$VPN_IPSEC_PSK" ] || [ -z "$VPN_USER" ] || [ -z "$VPN_PASSWORD" ]; then
85
85
exiterr " All VPN credentials must be specified. Edit the script and re-enter them."
86
86
fi
87
87
88
+ case " $VPN_IPSEC_PSK $VPN_USER $VPN_PASSWORD " in
89
+ * [\\\"\' ]* )
90
+ exiterr " VPN credentials must not contain any of these characters: \\ \" '"
91
+ ;;
92
+ esac
93
+
88
94
echo " VPN setup in progress... Please be patient."
89
95
echo
90
96
You can’t perform that action at this time.
0 commit comments