namazu-ml(avocado)


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Internet Explorer for Macintosh



On Wed, 7 Oct 1998 15:52:45 +0900,
Kenji Suzuki <kenji@xxxxxxxxxxxxxxxx> wrote:

> At 3:37 PM +0900 10/7/98, Satoru Takabayashi wrote:
> > 面倒ですねえ。対応すべきなのだろうか…。
> しないべきでしょう.

まあ、「ウチのマックから検索できん」とか怒られる可哀想な webmaster が
いたら、当ててみてくださいな。
Only in namazu-1.3.0.0-beta-5+/src: Makefile
diff -rcbw namazu-1.3.0.0-beta-5/src/Makefile.in namazu-1.3.0.0-beta-5+/src/Makefile.in
*** namazu-1.3.0.0-beta-5/src/Makefile.in	Tue Sep 29 17:06:21 1998
--- namazu-1.3.0.0-beta-5+/src/Makefile.in	Wed Oct  7 17:30:35 1998
***************
*** 151,157 ****
  
  DEFINES	= -DINDEXDIR=\"$(INDEXDIR)\" -DSCORING=$(SCORING) \
  	-D$(SYSTEM) -DOPT_NAMAZU_CONF=\"$(OPT_NAMAZU_CONF)\" \
! 	-DLANGUAGE=\"$(LANGUAGE)\"
  
  ##################################################################
  ## General Set-up
--- 151,157 ----
  
  DEFINES	= -DINDEXDIR=\"$(INDEXDIR)\" -DSCORING=$(SCORING) \
  	-D$(SYSTEM) -DOPT_NAMAZU_CONF=\"$(OPT_NAMAZU_CONF)\" \
! 	-DLANGUAGE=\"$(LANGUAGE)\" -DMSIE4MACFIX
  
  ##################################################################
  ## General Set-up
diff -rcbw namazu-1.3.0.0-beta-5/src/cgi.c namazu-1.3.0.0-beta-5+/src/cgi.c
*** namazu-1.3.0.0-beta-5/src/cgi.c	Tue Sep 29 17:06:21 1998
--- namazu-1.3.0.0-beta-5+/src/cgi.c	Wed Oct  7 17:37:22 1998
***************
*** 122,127 ****
--- 122,159 ----
                  }
              }
              *(query + i) = (uchar) NULL;
+ 
+ #ifdef MSIE4MACFIX
+ #define MSIE4MAC "Mozilla/4.0 (compatible; MSIE 4.01; Mac"
+ 
+             if (!strncmp(query, "%1B", 3)) {
+               char *agent = getenv("HTTP_USER_AGENT");
+               if (!strncmp(agent, MSIE4MAC, strlen(MSIE4MAC))) {
+                 uchar *buf, *p;
+ 
+                 if ((uchar *)NULL ==
+                     (buf = (uchar *)malloc(strlen(query) * sizeof(uchar))))
+                   error("cgi: malloc(urlfix for msie/mac)");
+                 p = query;
+ 
+                 for (i = 0; *p && i <= QUERYLENG_MAX; p++, i++) {
+                   if(*p == '%') {
+                     *(buf + i) = URLdecode(*(p + 1), *(p + 2));
+                     p += 2;
+                   } else if (*p == '+') {
+                     *(buf + i) = ' ';
+                   } else {
+                     *(buf + i) = *p;
+                   }
+                 }
+                 *(buf + i) = (uchar) NULL;
+                 strcpy(query, buf);
+                 free(buf);
+               }
+             }
+ 
+ #endif /* MSIE4MACFIX */
+ 
          } else if (!strncmp(qs, "format=short", 12)) {
              ShortFormat = 1;
              qs += 12;