Browse Source

Escape slashes (#2375)

Honza Hommer 5 years ago
parent
commit
28a9df669d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      dnsapi/dns_namecheap.sh

+ 1 - 1
dnsapi/dns_namecheap.sh

@@ -164,7 +164,7 @@ _namecheap_set_publicip() {
     _debug sourceip "$NAMECHEAP_SOURCEIP"
     _debug sourceip "$NAMECHEAP_SOURCEIP"
 
 
     ip=$(echo "$NAMECHEAP_SOURCEIP" | _egrep_o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
     ip=$(echo "$NAMECHEAP_SOURCEIP" | _egrep_o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}')
-    addr=$(echo "$NAMECHEAP_SOURCEIP" | _egrep_o '(http|https)://.*')
+    addr=$(echo "$NAMECHEAP_SOURCEIP" | _egrep_o '(http|https):\/\/.*')
 
 
     _debug2 ip "$ip"
     _debug2 ip "$ip"
     _debug2 addr "$addr"
     _debug2 addr "$addr"