From: wessels <> Date: Wed, 1 Apr 1998 07:12:33 +0000 (+0000) Subject: tolower() hostnames in icon URLs X-Git-Tag: SQUID_3_0_PRE1~3669 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0fd942ed2536bab7523e5f348a1f9a0a98551376;p=thirdparty%2Fsquid.git tolower() hostnames in icon URLs --- diff --git a/src/mime.cc b/src/mime.cc index 739e51e495..bdd3347c88 100644 --- a/src/mime.cc +++ b/src/mime.cc @@ -1,6 +1,6 @@ /* - * $Id: mime.cc,v 1.57 1998/03/31 05:37:45 wessels Exp $ + * $Id: mime.cc,v 1.58 1998/04/01 00:12:33 wessels Exp $ * * DEBUG: section 25 MIME Parsing * AUTHOR: Harvest Derived @@ -315,10 +315,13 @@ mimeGetIconURL(const char *fn) { char *icon = mimeGetIcon(fn); static char iconurl[256]; + static char host[SQUIDHOSTNAMELEN]; if (icon == NULL) return NULL; + xstrncpy(host, getMyHostname(), SQUIDHOSTNAMELEN); + Tolower(host); snprintf(iconurl, 256, "http://%s:%d/squid-internal/icons/%s", - getMyHostname(), + host, Config.Port.http->i, icon); return iconurl;