On version 0.9.4, the source script does not display directories with '-'.
Example : directory foo-bar
The link points to '.../source/foo-bar/' and the page displayed shows: 'can not find directory /foo'
Can anyone help me ?
Jean
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Re to my post...
Apply the following patch to Common.pm for files with '-' to be listed:
542c542
< $path =~ s!(^[\w+\-,.%^/]+).*!$1!;
---
> $path =~ s!(^[\w_+-,.%^/]+).*!$1!;
544c544
< while ($path =~ m!/\.\./!) {
---
> while ($path =~ m!/../!) {
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've patched Common.pm as reported on this thread and re-indexed my sources too... anyway I'm still getting the error:
"The file /include/asm does not exist."
when I try to navigate to links like that one:
"http://localhost/lxr//source/include/asm-i386/"
Another problem is that sometimes, clicking on a link, I get a request for file download instead of navigate to the linked page... refreshing (F5) make everithing work fine again... why that sort of behavoire?
Tks,
Patrick
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
On version 0.9.4, the source script does not display directories with '-'.
Example : directory foo-bar
The link points to '.../source/foo-bar/' and the page displayed shows: 'can not find directory /foo'
Can anyone help me ?
Jean
Re to my post...
Apply the following patch to Common.pm for files with '-' to be listed:
542c542
< $path =~ s!(^[\w+\-,.%^/]+).*!$1!;
---
> $path =~ s!(^[\w_+-,.%^/]+).*!$1!;
544c544
< while ($path =~ m!/\.\./!) {
---
> while ($path =~ m!/../!) {
Hi Jean,
Did you fix the problem by the patch?
I tried, but failed.
Anyone can help?
/Jing
you need to re-index after patching
I applied the patch (it's backwards) and it seems to work just fine.
Ryan
I've patched Common.pm as reported on this thread and re-indexed my sources too... anyway I'm still getting the error:
"The file /include/asm does not exist."
when I try to navigate to links like that one:
"http://localhost/lxr//source/include/asm-i386/"
Another problem is that sometimes, clicking on a link, I get a request for file download instead of navigate to the linked page... refreshing (F5) make everithing work fine again... why that sort of behavoire?
Tks,
Patrick
another problem I experianced is when checngin to folders with two character name like 'mm/'. It returns to source root directory.