fixed 2 uri normalization bugs on '//' reduction Daniel

* uri.c: fixed 2 uri normalization bugs on '//' reduction
Daniel
diff --git a/uri.c b/uri.c
index 61d9363..bbd3c30 100644
--- a/uri.c
+++ b/uri.c
@@ -774,6 +774,9 @@
 	 */
 	if ((cur[0] == '.') && (cur[1] == '/')) {
 	    cur += 2;
+	    /* '//' normalization should be done at this point too */
+	    while (cur[0] == '/')
+		cur++;
 	    continue;
 	}
 
@@ -790,6 +793,10 @@
               goto done_cd;
 	    (out++)[0] = (cur++)[0];
 	}
+	/* nomalize // */
+	while ((cur[0] == '/') && (cur[1] == '/'))
+	    cur++;
+
         (out++)[0] = (cur++)[0];
     }
  done_cd: