>Number: 3543 >Category: general >Synopsis: .cgi and .shtml files can have /text at the end of the URL, >resulting in broken links >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: open >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Wed Dec 16 12:20:00 PST 1998 >Last-Modified: >Originator: [EMAIL PROTECTED] >Organization: apache >Release: 1.3.3/Unix >Environment: SunOS www 5.5.1 Generic_103640-21 sun4u sparc SUNW,Ultra-1 >Description: When a browser requests an AddHandler-handled file (.cgi, .shtml), and the user or the web page they're coming from has erroneously added a trailing slash and possibly other characters, an error 404 is *not* generated. The page is passed to the browser as if the trailing slash and anything beyond it didn't exist. This means that any relative links on the page stop working.
Example: http://www.acusd.edu/ac/classes/sched.shtml/ http://www.acusd.edu/ac/classes/sched.shtml/blahblahblah will serve the sched.shtml page, working almost fine: except that the locally-stored image does not load, because the browser (correctly) requests an image in the ".../sched.shtml/" directory--which of course doesn't exist. And any local links simply come right back to the sched.shtml page. Another server I use that runs Apache 1.2b11 also exhibits this behavior. >How-To-Repeat: http://www.acusd.edu/ac/classes/sched.shtml/thisfiledontexist http://www.hoboes.com/jerry/Gallery/Legos.shtml/thisonedontneither >Fix: >Audit-Trail: >Unformatted: [In order for any reply to be added to the PR database, ] [you need to include <[EMAIL PROTECTED]> in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ] [If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request ] [from a developer. ] [Reply only with text; DO NOT SEND ATTACHMENTS! ]
