mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@9840 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2598e080c2
commit
dda6bede70
3 changed files with 6 additions and 6 deletions
|
|
@ -276,7 +276,7 @@ struct UrlInfo {
|
|||
String scheme;
|
||||
String host;
|
||||
String port;
|
||||
String user;
|
||||
String username;
|
||||
String password;
|
||||
String path;
|
||||
String query;
|
||||
|
|
|
|||
|
|
@ -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('/');
|
||||
|
|
|
|||
|
|
@ -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; &]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue