From: SourceForge.net <no...@so...> - 2006-03-08 23:39:16
|
Bugs item #1446014, was opened at 2006-03-08 15:39 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1446014&group_id=27350 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: Browsing Group: v0.9.4 Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: Cant use hyphen in file names Initial Comment: Indexing files or directories named first-second cannot be viewed. Selecting the first-second link results in "The file first cannot be found." The cause is clean_path not allowing hyphen. It's in the list, just not first, so it denotes a range between the adjacent characters, not itself. Moving the hyphen to the beginning of the list solves the problem. --- Common.pm 2006-03-08 15:14:26.000000000 -0800 +++ Common.pm.old 2006-02-14 08:47:29.000000000 -0800 @@ -539,8 +539,7 @@ if(defined $path) { # First suppress anything after a dodgy character - $path =~ s!(^[-\w_+,.%^/]+).*!$1!; + $path =~ s!(^[\w_+-,.%^/]+).*!$1!; # Clean out /../ while ($path =~ m!/../!) { $path = s!/\.\./!/!g; As '+' and ',' are adjacent in the ascii character set, "+-," is a valid but not very useful range. Enjoy Lee lee...@f5... ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1446014&group_id=27350 |