Changeset 33358


Ignore:
Timestamp:
2012-09-10T12:03:39+02:00 (5 years ago)
Author:
jow
Message:

[packages] ddns-scripts: fix handling of passwords with slashes (#12160)

Location:
packages/net/ddns-scripts
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/net/ddns-scripts/Makefile

    r31939 r33358  
    33PKG_NAME:=ddns-scripts 
    44PKG_VERSION:=1.0.0 
    5 PKG_RELEASE:=20 
     5PKG_RELEASE:=21 
    66 
    77PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME) 
  • packages/net/ddns-scripts/files/usr/lib/ddns/dynamic_dns_updater.sh

    r31212 r33358  
    306306                        fi 
    307307                done 
    308                 final_url=$(echo $final_url | sed s/"\[HTTPAUTH\]"/"$username${password:+:$password}"/g ) 
     308                final_url=$(echo $final_url | sed s^"\[HTTPAUTH\]"^"${username//^/\\^}${password:+:${password//^/\\^}}"^g ) 
    309309                final_url=$(echo $final_url | sed s/"\[IP\]"/"$current_ip"/g ) 
    310310 
Note: See TracChangeset for help on using the changeset viewer.