In url_escape.sed the substitution for % needs to be done first otherwise it
will change previously done substitutions. As it stands now the < will be
replaced by a %253C because it will first do a substitution from < to %3C
and then the % of %3C will be further replaced with %25. Right now the
substitution do not work for space < > and #

Signed-off by: Carlos Soto < carlos.soto arroba terra.es>

--------------

Index: ddns-scripts/files/usr/lib/ddns/url_escape.sed
===================================================================
--- ddns-scripts/files/usr/lib/ddns/url_escape.sed      (revisión: 18985)
+++ ddns-scripts/files/usr/lib/ddns/url_escape.sed      (copia de trabajo)
@@ -1,9 +1,9 @@
 # sed url escaping
+s:%:%25:g
 s: :%20:g
 s:<:%3C:g
 s:>:%3E:g
 s:#:%23:g
-s:%:%25:g
 s:{:%7B:g
 s:}:%7D:g
 s:|:%7C:g



_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to