[packages] ddns-scripts:
authorJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Jul 2010 12:10:13 +0000 (12:10 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Tue, 13 Jul 2010 12:10:13 +0000 (12:10 +0000)
- urlencode exclamation marks (#7607)
- support new token [HTTPAUTH] for unencoded username:password tuples

SVN-Revision: 22165

net/ddns-scripts/Makefile
net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh
net/ddns-scripts/files/usr/lib/ddns/url_escape.sed

index 930e60e54d7ed9d3ae09e53a35163efb3abebacc..a0ba7d580af6c17b6848f4fe03a4acaedcad0a23 100644 (file)
@@ -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)
 
index b7824326b4e8e8436be1a19e39a2abddf71508b6..6bdc9c0661b87aa9e9358d4ea221e510b75aa3ff 100755 (executable)
@@ -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 )
 
 
index eb7011beb24eb7d7577b80d2fe113c1660f9887f..feae98fa8e91c4a9c2636abc246a1d7f75cdbf5b 100644 (file)
@@ -21,3 +21,5 @@ s:@:%40:g
 s:=:%3D:g
 s:&:%26:g
 s:\$:%24:g
+s:\!:%21:g
+