Changeset 17798


Ignore:
Timestamp:
2009-09-29T05:43:43+02:00 (7 years ago)
Author:
nico
Message:

[packages] ddns-scripts: fix escaping of option values (closes: #5327)

Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/packages_8.09/net/ddns-scripts/Makefile

    r16225 r17798  
    33PKG_NAME:=ddns-scripts 
    44PKG_VERSION:=1.0.0 
    5 PKG_RELEASE:=1.1 
     5PKG_RELEASE:=1.2 
    66 
    77PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • branches/packages_8.09/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

    r16225 r17798  
    251251                        replace_name=$(echo "\[$option_var\]" | tr 'a-z' 'A-Z') 
    252252                        replace_value=$(eval echo "\$$option_var") 
    253                         final_url=$(echo $final_url | sed s/"$replace_name"/"$replace_value"/g ) 
     253                        replace_value=$(echo $replace_value | sed -f /usr/lib/ddns/url_escape.sed) 
     254                        final_url=$(echo $final_url | sed s^"$replace_name"^"$replace_value"^g ) 
    254255                done     
    255256                final_url=$(echo $final_url | sed s/"\[IP\]"/"$current_ip"/g ) 
  • packages/net/ddns-scripts/Makefile

    r16965 r17798  
    33PKG_NAME:=ddns-scripts 
    44PKG_VERSION:=1.0.0 
    5 PKG_RELEASE:=3 
     5PKG_RELEASE:=4 
    66 
    77PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • packages/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

    r15423 r17798  
    251251                        replace_name=$(echo "\[$option_var\]" | tr 'a-z' 'A-Z') 
    252252                        replace_value=$(eval echo "\$$option_var") 
    253                         final_url=$(echo $final_url | sed s/"$replace_name"/"$replace_value"/g ) 
     253                        replace_value=$(echo $replace_value | sed -f /usr/lib/ddns/url_escape.sed) 
     254                        final_url=$(echo $final_url | sed s^"$replace_name"^"$replace_value"^g ) 
    254255                done     
    255256                final_url=$(echo $final_url | sed s/"\[IP\]"/"$current_ip"/g ) 
Note: See TracChangeset for help on using the changeset viewer.