]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't add // to geo: URIs.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 26 Mar 2014 19:51:59 +0000 (19:51 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 26 Mar 2014 19:51:59 +0000 (19:51 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11736 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/http-support.c

index 501b2a2aca483fa70bc2b61604aba850e720602f..db0b3753317e7e5f4f57c1b4eaab527a91a205c7 100644 (file)
@@ -192,10 +192,10 @@ httpAssembleURI(
   if (!ptr)
     goto assemble_overflow;
 
-  if (!strcmp(scheme, "mailto") || !strcmp(scheme, "tel"))
+  if (!strcmp(scheme, "geo") || !strcmp(scheme, "mailto") || !strcmp(scheme, "tel"))
   {
    /*
-    * mailto: and tel: only have :, no //...
+    * geo:, mailto:, and tel: only have :, no //...
     */
 
     if (ptr < end)
@@ -206,7 +206,7 @@ httpAssembleURI(
   else
   {
    /*
-    * Schemes other than mailto: and tel: all have //...
+    * Schemes other than geo:, mailto:, and tel: typically have //...
     */
 
     if ((ptr + 2) < end)