Fix bug that source script does not display file content.
Brought to you by:
ajlittoz
Recently I set up a LXR server for OpenOffice.org 2.0.0rc3 using lxr-0.9.4,
but some source code can not displayed. After playing with it about 2
days, I fixed the bug finally. Please saw the attachment.
Anyone can contact me at wangxuesong@ccoss.com.cn .
Fix a small but import bug.
Logged In: NO
I patched the patch to make it work with
apache2-mod_perl-2.0.0-4
--- fix_bug_remove_directory.patch.org 2006-01-04
14:44:43.000000000 +0100
+++ fix_bug_remove_directory.patch 2006-01-13
14:29:50.641684000 +0100
@@ -7,9 +7,9 @@
# Clean out /../
- while ($path =~ m!/../!) {
- $path = s!/\.\./!/!g;
-+ //Added by Wang Xuesong
<wangxuesong@ccoss.com.cn>.
-+ //Fix bug that remove the directory which
was made up of
-+ //two characters.
++ # Added by Wang Xuesong
<wangxuesong@ccoss.com.cn>.
++ # Fix bug that remove the directory which
was made up of
++ # two characters.
+ while ($path =~ m!/\.\./!) {
+ $path =~ s!/(\.\./)*!/!g;
}
Logged In: YES
user_id=215386
Thanks for the fix. This has been fixed in CVS and will be
in the 0.9.5 release.