[ php-blog-Bugs-2959891 ] DirectoryIndex incorrect when space in path

"SourceForge.net" <[email protected]> Sat, 27 Feb 2010 09:27:53 +0000
Newsgroups gmane.comp.serendipity.trackers
Message-ID <[email protected]>
Bugs item #2959891, was opened at 2010-02-26 23:04
Message generated for change (Comment added) made by garvinhicking
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2959891&group_id=75065

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Installer/Upgrader
Group: CVS/SVN/Nightly
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brian Hardie (bhardie)
Assigned to: Nobody/Anonymous (nobody)
Summary: DirectoryIndex incorrect when space in path

Initial Comment:
When Serendipity is installed to a location with a space in the path (i.e. http://example.com/serendipity withspaces/) the index.php page will not be loaded by default if no file is specified.  It appears to be due to the DirectoryIndex directive's local-url part in .htaccess not being encoded.  According to http://httpd.apache.org/docs/2.2/mod/mod_dir.html, "Local-url is the (%-encoded) URL of a document on the server relative to the requested directory".  mod_dir considers 
  DirectoryIndex /serendipity withspaces/index.php
to mean two possible indexes, "/serendipity" and "withspaces/index.php".


----------------------------------------------------------------------

>Comment By: Garvin Hicking (garvinhicking)
Date: 2010-02-27 09:27

Message:
Hi!

Spaces in paths often impose a problem with both the server and/or (older)
browsers, so we strongly suggest to not use paths with spaces.

If you do need that, you should go to the s9y configuration and inside the
path settings, make sure to enter "%20" or "+" (?) inside the path setting
- this might properly encode the path?

Therem might be other occurences of s9y plugins that do not deal well with
such paths, though...

Regards,
Garvin

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=542822&aid=2959891&group_id=75065

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev