From 0fd942ed2536bab7523e5f348a1f9a0a98551376 Mon Sep 17 00:00:00 2001 From: wessels <> Date: Wed, 1 Apr 1998 07:12:33 +0000 Subject: [PATCH] tolower() hostnames in icon URLs --- src/mime.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.47.3