Q:NCSA's httpd_1.4.2 break on 8-bit input using METHOD=GET

Q:NCSA's httpd_1.4.2 break on 8-bit input using METHOD=GET

Post by Bernd Kra » Sun, 20 Aug 1995 04:00:00



Hi,
I got a problem with NCSA's httpd Version 1.4.2 under
Linux 1.2.3. At posting the QUERY-string from a form
to a cgi-bin script, the string breaks on 8-bit input,
if the the METHOD=GET is used.
That mean, that any 8-bit character in the
QUERY-string is mixed up. :-(
If i use METHOD=POST, there's no problem.

Got anybody an idea, how to fix it ?

thanks,
ben

--
"Logic and practical information do not seem to apply here."
"You admit that?"
"To deny the facts would be illogical, Doctor"
                -- Spock and McCoy, "A Piece of the Action", stardate unknown

 
 
 

1. NCSA httpd_1.4.2 following index.html symlink

I just upgraded from NCSA httpd_1.3 to 1.4.2 and found that it still has
a problem that I noted in the earlier version.  Namely, even with Options None
in the access.conf, it will follow a symlink'd index.html file.  It's
important to me that our server never follow symlinks because I want to
keep WWW file access restricted to a certain area of the system.

My solution is to add some lines to httpd_get.c:

*** http_get.c  Sun Sep 24 12:31:39 1995
--- http_get.c.orig     Fri Jun 23 12:09:57 1995
***************
*** 207,223 ****
              }
          }
          else {
- /*
-  * copied the following from above to prevent using index.html
-  * if it is a symlink.  Changed `file' args to `ifile'.   R. Perry, 9/24/95
-  */
-     evaluate_access(ifile,&finfo,M_GET,&allow,&allow_options, fd);
-     if(!allow) {
-         log_reason("client denied by server configuration",ifile);
-         unmunge_name(ifile);
-         die(FORBIDDEN,ifile,fd);
-     }
-
              probe_content_type(ifile);
              if(!strcmp(content_type,CGI_MAGIC_TYPE))
                  send_cgi("GET",ifile,pa,args,&finfo,in,fd);
--- 207,212 ----


Dr. Rick Perry, ECE Department, Villanova University, Villanova, PA 19085
610-519-4969, fax: 610-519-4436, hm: 610-259-8734

2. University of California SD, Short Courses in Communications Technology

3. mac2lat1 Convert 8-bit quoted printable characters to 8-bit latin1

4. AHA2940 and Samsung Harddisk

5. mulaw 8-bit to linear 8-bit conversion

6. Running Solaris 2.5.1 x86 without NFs

7. SB 16 PnP: 8-bit sound works, 16-bit sound broken?

8. script to mail@localhost when system reboots

9. SB16: 16-bit sound o.k., 8-bit sound breaks off?????

10. 8-bit ISA > 16-bit MCA, what ADF's?

11. Cheapo PnP SB Pro clone: 8-bit works, 16-bit doesn't

12. gif files cutoff in httpd_1.4.2

13. Getting User Input in BASH Script without using 'Read'.