Author: senaka Date: Wed Mar 5 11:38:24 2008 New Revision: 633995 URL: http://svn.apache.org/viewvc?rev=633995&view=rev Log: Adding changes to suit definition of path in RFC3986
Modified: webservices/axis2/trunk/c/util/src/uri.c Modified: webservices/axis2/trunk/c/util/src/uri.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/util/src/uri.c?rev=633995&r1=633994&r2=633995&view=diff ============================================================================== --- webservices/axis2/trunk/c/util/src/uri.c (original) +++ webservices/axis2/trunk/c/util/src/uri.c Wed Mar 5 11:38:24 2008 @@ -348,6 +348,16 @@ * that the path could be empty -- http://foobar?query for example */ s = uri_str; + if ((!uri->hostinfo && uri_str[0] == '/' && uri_str[1] == '/') || + (!uri->scheme && uri_str[0] == ':')) + { + if (uri) + { + axutil_uri_free(uri, env); + } + uri = NULL; + goto end; + } while ((uri_delims[*(unsigned char *) s] & NOTEND_PATH) == 0) { ++s; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]