You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by "David J. MacKenzie" <dj...@va.pubnix.com> on 1996/04/01 20:55:37 UTC

apache 1.0.3 ScanHTMLTitles bug fix

From: David MacKenzie <dj...@va.pubnix.com>
Subject: ScanHTMLTitles misses <title> directives
Affects: mod_dir.c
ChangeLog: Make check against <TITLE> case-insensitive
Comments: Since HTML directives are case-insensitive, and use of
lowercase tags is fairly common, ScanHTMLTitles should support that.

--- 1.1	1996/02/17 08:34:29
+++ mod_dir.c	1996/04/01 18:52:47
@@ -470,7 +470,7 @@
         n = fread(titlebuf,sizeof(char),MAX_STRING_LEN - 1,thefile);
         titlebuf[n] = '\0';
         for(x=0,p=0;titlebuf[x];x++) {
-            if(titlebuf[x] == find[p]) {
+	    if(toupper(titlebuf[x]) == find[p]) {
                 if(!find[++p]) {
                     if((p = ind(&titlebuf[++x],'<')) != -1)
                         titlebuf[x+p] = '\0';

----- End of forwarded message from David J. MacKenzie -----

-- 
Rob Hartill (robh@imdb.com)
The Internet Movie Database (IMDb)  http://www.imdb.com/
           ...more movie info than you can poke a stick at.