From: Jo-Philipp Wich Date: Tue, 13 Jul 2010 12:10:13 +0000 (+0000) Subject: ddns-scripts: - urlencode exclamation marks (#7607) - support new token [HTTPAUTH... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3e255cda02f7895c85776cc73608a81cc01c72f8;p=openwrt%2Fsvn-archive%2Fpackages.git ddns-scripts: - urlencode exclamation marks (#7607) - support new token [HTTPAUTH] for unencoded username:password tuples SVN-Revision: 22165 --- diff --git a/net/ddns-scripts/Makefile b/net/ddns-scripts/Makefile index 930e60e54..a0ba7d580 100644 --- a/net/ddns-scripts/Makefile +++ b/net/ddns-scripts/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-scripts PKG_VERSION:=1.0.0 -PKG_RELEASE:=8 +PKG_RELEASE:=9 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) diff --git a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh index b7824326b..6bdc9c066 100755 --- a/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh +++ b/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh @@ -256,6 +256,7 @@ do final_url=$(echo $final_url | sed s^"$replace_name"^"$replace_value"^g ) fi done + final_url=$(echo $final_url | sed s/"\[HTTPAUTH\]"/"$username${password:+$password}"/g ) final_url=$(echo $final_url | sed s/"\[IP\]"/"$current_ip"/g ) diff --git a/net/ddns-scripts/files/usr/lib/ddns/url_escape.sed b/net/ddns-scripts/files/usr/lib/ddns/url_escape.sed index eb7011beb..feae98fa8 100644 --- a/net/ddns-scripts/files/usr/lib/ddns/url_escape.sed +++ b/net/ddns-scripts/files/usr/lib/ddns/url_escape.sed @@ -21,3 +21,5 @@ s:@:%40:g s:=:%3D:g s:&:%26:g s:\$:%24:g +s:\!:%21:g +