.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@9840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2016-05-15 18:51:29 +00:00
parent 2598e080c2
commit dda6bede70
3 changed files with 6 additions and 6 deletions

View file

@ -276,7 +276,7 @@ struct UrlInfo {
String scheme;
String host;
String port;
String user;
String username;
String password;
String path;
String query;

View file

@ -682,12 +682,12 @@ void UrlInfo::Parse(const String& url_)
q = h.Find('@');
if(q >= 0) {
user = h.Mid(0, q);
username = h.Mid(0, q);
h = h.Mid(q + 1);
q = user.Find(':');
q = username.Find(':');
if(q >= 0) {
password = user.Mid(q + 1);
user.Trim(q);
password = username.Mid(q + 1);
username.Trim(q);
}
}
q = h.Find('/');

View file

@ -39,7 +39,7 @@ topic "UrlInfo";
[s2;%% Port: [@3 9090]&]
[s3; &]
[s4; &]
[s5;:Upp`:`:UrlInfo`:`:user: [_^Upp`:`:String^ String]_[* username]&]
[s5;:Upp`:`:UrlInfo`:`:username: [_^Upp`:`:String^ String]_[* username]&]
[s2;%% Authentication username: [@3 username]&]
[s3; &]
[s4; &]