mirror of
https://github.com/openwrt/packages.git
synced 2025-12-16 23:51:18 +00:00
ddns-scripts: Fix for wildcard subdomain
Signed-off-by: Wenli Looi <wlooi@ucalgary.ca>
This commit is contained in:
@@ -73,6 +73,9 @@ SHELL_ESCAPE="[\"\'\`\$\!();><{}?|\[\]\*\\\\]"
|
||||
# dns character set
|
||||
DNS_CHARSET="[@a-zA-Z0-9._-]"
|
||||
|
||||
# domains can have * for wildcard
|
||||
DNS_CHARSET_DOMAIN="[@a-zA-Z0-9._-*]"
|
||||
|
||||
# detect if called by ddns-lucihelper.sh script, disable retrys (empty variable == false)
|
||||
LUCI_HELPER=$(printf %s "$MYPROG" | grep -i "luci")
|
||||
|
||||
|
||||
@@ -257,7 +257,7 @@ esac
|
||||
# verify validity of variables
|
||||
[ -n "$lookup_host" ] && sanitize_variable lookup_host "$DNS_CHARSET" ""
|
||||
[ -n "$dns_server" ] && sanitize_variable dns_server "$DNS_CHARSET" ""
|
||||
[ -n "$domain" ] && sanitize_variable domain "$DNS_CHARSET" ""
|
||||
[ -n "$domain" ] && sanitize_variable domain "$DNS_CHARSET_DOMAIN" ""
|
||||
|
||||
# Filter shell escape characters, if these are required in the URL, they
|
||||
# can still be passed url encoded
|
||||
|
||||
Reference in New Issue
Block a user