HTTP: fix - added URL decoding for credentials from the URL.

git-svn-id: https://svn.code.sf.net/p/synalist/code/trunk@134 7c85be65-684b-0410-a082-b2ed4fbef004
This commit is contained in:
geby 2011-01-20 10:27:37 +00:00
parent aec40ee3cc
commit d628e558ef

View File

@ -1,9 +1,9 @@
{==============================================================================|
| Project : Ararat Synapse | 003.012.005 |
| Project : Ararat Synapse | 003.012.006 |
|==============================================================================|
| Content: HTTP client |
|==============================================================================|
| Copyright (c)1999-2010, Lukas Gebauer |
| Copyright (c)1999-2011, Lukas Gebauer |
| All rights reserved. |
| |
| Redistribution and use in source and binary forms, with or without |
@ -33,7 +33,7 @@
| DAMAGE. |
|==============================================================================|
| The Initial Developer of the Original Code is Lukas Gebauer (Czech Republic).|
| Portions created by Lukas Gebauer are Copyright (c) 1999-2010. |
| Portions created by Lukas Gebauer are Copyright (c) 1999-2011. |
| All Rights Reserved. |
|==============================================================================|
| Contributor(s): |
@ -397,6 +397,8 @@ begin
FUploadSize := 0;
URI := ParseURL(URL, Prot, User, Pass, Host, Port, Path, Para);
User := DecodeURL(user);
Pass := DecodeURL(pass);
if User = '' then
begin
User := FUsername;