From 6ff4d054b72c1dc5823ee3cf0e89595ea2e5c6d3 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Tue, 7 Dec 2010 07:25:08 +0000 Subject: [PATCH] Added longer password support, sended by Ingo Schwarze (#3130634) git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@122 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ddclient b/ddclient index 9e15ff0..91b750d 100755 --- a/ddclient +++ b/ddclient @@ -1735,11 +1735,6 @@ sub encode_base64 ($;$) { # fix padding at the end my $padding = (3 - length($_[0]) % 3) % 3; $res =~ s/.{$padding}$/'=' x $padding/e if $padding; - - # break encoded string into lines of no more than 76 characters each - if (length $eol) { - $res =~ s/(.{1,76})/$1$eol/g; - } $res; } ###################################################################### @@ -1824,7 +1819,7 @@ sub geturl { $request .= "Host: $server\n"; my $auth = encode_base64("${login}:${password}"); - $request .= "Authorization: Basic $auth" if $login || $password; + $request .= "Authorization: Basic $auth\n" if $login || $password; $request .= "User-Agent: ${program}/${version}\n"; $request .= "Connection: close\n"; $request .= "\n";