[Lxr-dev] [ lxr-Bugs-1461086 ] "Cant use hyphen in file names" problem not fixed well
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2006-03-30 02:40:39
|
Bugs item #1461086, was opened at 2006-03-30 02:40 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=1461086&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: steel_mental (steel_mental) Assigned to: Nobody/Anonymous (nobody) Summary: "Cant use hyphen in file names" problem not fixed well Initial Comment: "Cant use hyphen in file names problem" fixed not well. the sub "clean_path" of file Common.pm(near line 537): .... if(defined $path) { # First suppress anything after a dodgy character $path =~ s!(^[\w_+-,.%^/]+).*!$1!; # Clean out /../ while ($path =~ m!/../!) { $path = s!/\.\./!/!g; } .... this line: $path =~ s!(^[\w_+-,.%^/]+).*!$1!; should be: $path =~ s!(^[\w_+\-,.%^/]+).*!$1!; or lxr still can not use hyphen in file names. my box is freebsd 6.0 with perl 5.8.8. sorry for my poor english and enjoy. by Michael Lee. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1461086&group_id=27350 |