* [patch] lxr-0.3.1 handle `_' fix
@ 2005-04-29 16:21 Coywolf Qi Hunt
0 siblings, 0 replies; only message in thread
From: Coywolf Qi Hunt @ 2005-04-29 16:21 UTC (permalink / raw)
To: lxr; +Cc: lxr-developer, linux-kernel, cate
Hello,
lxr-0.3.1 can not handle '_' in the Architecture variable.
Like <http://sosdg.org/~coywolf/lxr/source/include/asm-x86_64/?a=x86_64>
is wrongly shown as <http://sosdg.org/~coywolf/lxr/source/include/asm-/?a=x86_64>
This problem was brought in by the file exposure security fix some time ago iirc.
Coywolf
diff -pu lxr/http/lib/LXR/Config.pm.orig lxr/http/lib/LXR/Config.pm
--- lxr/http/lib/LXR/Config.pm.orig 2005-04-29 23:35:26.000000000 +0800
+++ lxr/http/lib/LXR/Config.pm 2005-04-29 23:37:28.000000000 +0800
@@ -156,7 +156,7 @@ sub varrange {
sub varexpand {
my ($self, $exp) = @_;
$exp =~ s{\$\{?(\w+)\}?}{
- $self->{variable}->{$1} =~ /^([a-zA-Z0-9\.\-]*)$/ ? $1 : ''
+ $self->{variable}->{$1} =~ /^([a-zA-Z0-9\.\-_]*)$/ ? $1 : ''
}ge;
return($exp);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-04-29 16:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-29 16:21 [patch] lxr-0.3.1 handle `_' fix Coywolf Qi Hunt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).