Menu

#32 Fix bug that source script does not display file content.

Bugfix
closed-duplicate
nobody
Browsing (12)
5
2006-03-31
2005-12-08
Anonymous
No

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 .

Discussion

  • Nobody/Anonymous

    Fix a small but import bug.

     
  • Nobody/Anonymous

    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;
    }

     
  • Malcolm Box

    Malcolm Box - 2006-03-31

    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.

     
  • Malcolm Box

    Malcolm Box - 2006-03-31
    • status: open --> closed-duplicate
     

Log in to post a comment.