[Lxr-dev] [ lxr-Bugs-1230443 ] Two letter directories fail
Brought to you by:
ajlittoz
From: SourceForge.net <no...@so...> - 2005-07-14 07:58:23
|
Bugs item #1230443, was opened at 2005-06-30 09:20 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1230443&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: Two letter directories fail Initial Comment: Using version 0.9.4 no error messages Postgres DB Plain Files Path names consisting of only 2 letters are not displayed. E.g. browsing in linux/fs/ the displayed directory remains at linux/. Found the bug in sub clean_path: # Clean out /../ while ($path =~ m!/../!) { $path = s!/\.\./!/!g; The first regex matches any two letters, it should be escaped with \: # Clean out /../ while ($path =~ m!/\.\./!) { $path = s!/\.\./!/!g; feedback or questions to: t.lehnig <at> gmx <dot> de. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2005-07-14 00:58 Message: Logged In: NO --- Common.pm.old 2005-07-14 15:54:29.000000000 +0800 +++ Common.pm 2005-07-14 15:55:21.000000000 +0800 @@ -541,7 +541,7 @@ # First suppress anything after a dodgy character $path =~ s!(^[\w_+-,.%^/]+).*!$1!; # Clean out /../ - while ($path =~ m!/../!) { + while ($path =~ m!/\.\./!) { $path = s!/\.\./!/!g; } } I found the problem, too ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=390117&aid=1230443&group_id=27350 |