[Lxr-dev] [ lxr-Bugs-1558177 ] Directories with 2 character names
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2006-09-13 20:44:24
|
Bugs item #1558177, was opened at 2006-09-13 13:44 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=1558177&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.3 Status: Open Resolution: None Priority: 5 Submitted By: Joe Meadows (jameadows) Assigned to: Nobody/Anonymous (nobody) Summary: Directories with 2 character names Initial Comment: Using LXR 0.9.3 I noticed that I could not browse into directories that had two character names (e.g. fs, db, nc). I tracked the source of the problem down to this code in Common.pm, around line 550: # Clean out /../ while ($path =~ m!/../!) { $path = s!/\.\./!/!g; } I made the change on the first line: while ($path =~ m!/\.\./!) { $path = s!/\.\./!/!g; } This appears to have fixed the problem for me, but when it comes to Perl I know just about enough to be dangerous so it would be good for someone more Perl saavy check this out. I think the previous regex expression was matching any two chars and not the literal '..' as intended. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1558177&group_id=27350 |