You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by se...@apache.org on 2008/03/05 20:38:27 UTC

svn commit: r633995 - /webservices/axis2/trunk/c/util/src/uri.c

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: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org