1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 14:58:08 +00:00

Don't forget to escape also the slash "/"

This commit is contained in:
DL6ER 2016-12-02 14:11:17 +01:00
parent 629ca970a1
commit 2061daa902

View File

@ -53,7 +53,7 @@ EOM
EscapeRegexp() {
# This way we may safely insert an arbitrary
# string in our regular expressions
echo $* | sed "s/[]\\.|$(){}?+*^]/\\\\&/g"
echo $* | sed "s/[]\\.|$(){}?+*^]/\\\\&/g" | sed "s/\\//\\\\\//g"
}
HandleOther(){