summaryrefslogtreecommitdiff
path: root/UConnectionProperties.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-01 23:38:59 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-10-01 23:38:59 +0200
commit140ab8b26adefd427fedfc32aadf46f47f7f4019 (patch)
treeedd3d96bf6d9a2e6754916e82bcf22839b2af11b /UConnectionProperties.pas
parentfbcbfad62bb22b42871052b08d474209511878ce (diff)
downloadtuxcmd-140ab8b26adefd427fedfc32aadf46f47f7f4019.tar.xz
Peoperly escape username and password in URIv0.6.64
This prevent parsing issues and confusion with separators Fixes bugs #2454128 and #2808177
Diffstat (limited to 'UConnectionProperties.pas')
-rw-r--r--UConnectionProperties.pas4
1 files changed, 2 insertions, 2 deletions
diff --git a/UConnectionProperties.pas b/UConnectionProperties.pas
index 99dbf9a..9899585 100644
--- a/UConnectionProperties.pas
+++ b/UConnectionProperties.pas
@@ -287,10 +287,10 @@ begin
if Pos(':', s2) > 0 then begin
s := Copy(s2, Pos(':', s2) + 1, Length(s2) - Pos(':', s2));
if s = '' then PasswordEntry.Text := '' else
- if Pos('*', s) <= 0 then PasswordEntry.Text := s;
+ if Pos('*', s) <= 0 then PasswordEntry.Text := UnEscapeURI(s);
Delete(s2, Pos(':', s2), Length(s2) - Pos(':', s2) + 1);
end else PasswordEntry.Text := '';
- UserNameEntry.Text := s2;
+ UserNameEntry.Text := UnEscapeURI(s2);
end else ServerEntry.Text := s2;
CurrentURI := MakeURI(False);