From: msweet Date: Wed, 26 Mar 2014 19:51:59 +0000 (+0000) Subject: Don't add // to geo: URIs. X-Git-Tag: v2.2b1~693 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60bc88e136c4549ffcbc10669cb1bae7bf9790e7;p=thirdparty%2Fcups.git Don't add // to geo: URIs. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11736 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/http-support.c b/cups/http-support.c index 501b2a2aca..db0b375331 100644 --- a/cups/http-support.c +++ b/cups/http-support.c @@ -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)