You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by James Sears <ja...@acornusers.org> on 1999/12/04 15:12:55 UTC
mod_speling/5418: Unexpected and unhelpful mod_speling typo correction with trailing slash
>Number: 5418
>Category: mod_speling
>Synopsis: Unexpected and unhelpful mod_speling typo correction with trailing slash
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Sat Dec 4 06:20:00 PST 1999
>Last-Modified:
>Originator: james@acornusers.org
>Organization:
apache
>Release: 1.3.9
>Environment:
Linux snowdon 2.2.6 #1 Sat Jul 10 15:46:28 EDT 1999 i586 unknown
gcc 2.7.2.3
PHP 4.0b3
mod_speling
>Description:
A request for a mistyped filename, that ends with a slash,
is redirected to the correct file name, but still with a
trailing slash, eg
/example.htm/ redirects to
/example.html/ when example.html exists, and not to
/example.html which might be expected, and which would be more useful
The second request for /example.html/ does NOT get redirected
to /example.html even though example.html exists as a file and not
as a directory.
>How-To-Repeat:
http://www.acornusers.org/index.htm/
(where index.html is the correct filename)
>Fix:
(1) Change mod_speling to notice and remove trailing slash if the name it
has suggested is a file.
(2) Match and redirect to files which are incorrectly accessed as directories.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database 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! ]