Differences From:
File
src/url.c
part of check-in
[7a2c37063a]
- merge trunk into creole branch
by
bob on
2009-09-22 07:49:39.
Also file
src/url.c
part of check-in
[9e274a2e7b]
- Update the proxy handler so that it supports basic authorization.
by
drh on
2009-09-12 21:53:24.
[view]
To:
File
src/url.c
part of check-in
[7a39dde24b]
- Clean up and merge updates from trunk
by
robert on
2009-09-26 08:17:33.
Also file
src/url.c
part of check-in
[7100babda6]
- Improved handling of spaces in usernames and passwords.
by
drh on
2009-09-21 16:14:33.
[view]
@@ -66,10 +66,12 @@
for(i=iStart; (c=zUrl[i])!=0 && c!='/' && c!='@'; i++){}
if( c=='@' ){
for(j=iStart; j<i && zUrl[j]!=':'; j++){}
g.urlUser = mprintf("%.*s", j-iStart, &zUrl[iStart]);
+ dehttpize(g.urlUser);
if( j<i ){
g.urlPasswd = mprintf("%.*s", i-j-1, &zUrl[j+1]);
+ dehttpize(g.urlPasswd);
}
for(j=i+1; (c=zUrl[j])!=0 && c!='/' && c!=':'; j++){}
g.urlName = mprintf("%.*s", j-i-1, &zUrl[i+1]);
i = j;