Hello,

Attached is a patch that fixes the case of an http:// URL which has a
username/password with strange characters in it. The HTTPSend component wrongly uses the urlencoded form of the
username/password when copying the username/password fields to the
authorization header. (found this out when accessing Microsoft Live services)

This patch (created from Subversion rev. 129) fixes that.

Michael.
Index: httpsend.pas
===================================================================
--- httpsend.pas	(revision 129)
+++ httpsend.pas	(working copy)
@@ -401,7 +401,12 @@
   begin

     User := FUsername;

     Pass := FPassword;

-  end;

+  end

+  else
+  begin
+    User:=DecodeURl(User);
+    Password:=DecodeURL(Password);
+  end;  
   if UpperCase(Prot) = 'HTTPS' then

   begin

     HttpTunnel := FProxyHost <> '';

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to