Ignore:
Timestamp:
Oct 1, 2010 6:43:17 AM (14 years ago)
Author:
bennylp
Message:

Re #1136 (Basic and digest authentication in the HTTP client): fixed error in parsing URL if the path contains at ("@") character

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/src/pjlib-util-test/http_client.c

    r3321 r3332  
    304304        {"http://:@pjsip.org", PJ_SUCCESS, "", "", "pjsip.org", 80, "/"}, 
    305305 
     306        /* '@' character in username and path */ 
     307        {"http://user@pjsip.org/@", PJ_SUCCESS, "user", "", "pjsip.org", 80, "/@"}, 
     308 
     309        /* '@' character in path */ 
     310        {"http://pjsip.org/@", PJ_SUCCESS, "", "", "pjsip.org", 80, "/@"}, 
     311 
     312        /* '@' character in path */ 
     313        {"http://pjsip.org/one@", PJ_SUCCESS, "", "", "pjsip.org", 80, "/one@"}, 
     314 
    306315        /* Invalid URL */ 
    307316        {"http://:", PJ_EINVAL, "", "", "", 0, ""}, 
     
    324333        /* Invalid URL */ 
    325334        {"http://@/", PJ_EINVAL, "", "", "", 0, ""}, 
     335 
     336        /* Invalid URL */ 
     337        {"http:///@", PJ_EINVAL, "", "", "", 0, ""}, 
    326338 
    327339        /* Invalid URL */ 
Note: See TracChangeset for help on using the changeset viewer.