- $ svn diff
 - Index: urlparser1.c
 - ===================================================================
 - --- urlparser1.c (revision 396)
 - +++ urlparser1.c (working copy)
 - @@ -150,7 +150,7 @@
 - slen = s-urlstr;
 - (void)memcpy(uctx->hostport.hostname, urlstr, slen*sizeof(char));
 - uctx->hostport.hostname[slen] = '\0';
 - - urlstr += slen;
 - + urlstr += slen + 1;
 - /*
 - * check for addresses within '[' and ']', like
 - @@ -223,10 +223,13 @@
 - (void)test_url_parser("foo://myuser@hostbar/baz");
 - (void)test_url_parser("foo://myuser:mypasswd@hostbar/baz");
 - (void)test_url_parser("foo://myuser:mypasswd@hostbar:666/baz");
 - + (void)test_url_parser("foo://myuser:mypasswd@hostbar:666//baz");
 - (void)test_url_parser("foo://myuser:mypasswd@[fe80::21b:1bff:fec3:7713]:666/baz");
 - (void)test_url_parser("foo://:mypasswd2@hostbar2:667/baf");
 - (void)test_url_parser("foo://hostbar");
 - (void)test_url_parser("foo://hostbar:93");
 - + (void)test_url_parser("nfs://hostbar:93/relativepath/a");
 - + (void)test_url_parser("nfs://hostbar:93//absolutepath/a");
 - (void)test_url_parser("foo://");
 - (void)test_url_parser("typo:/hostbar");
 - (void)test_url_parser("wrong");
 
urlparser1: Fix for relative/absolute paths
Posted by Anonymous on Thu 25th Jan 2024 01:10
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.
 nrubsig.kpaste.net RSS