public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Coywolf Qi Hunt" <coywolf@lovecn.org>
To: lxr@linux.no
Cc: lxr-developer@lists.sourceforge.net,
	linux-kernel@vger.kernel.org, cate@debian.org
Subject: [patch] lxr-0.3.1 handle `_' fix
Date: Sat, 30 Apr 2005 00:21:54 +0800	[thread overview]
Message-ID: <20050429162034.GA4641@lovecn.org> (raw)


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

                 reply	other threads:[~2005-04-29 16:22 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050429162034.GA4641@lovecn.org \
    --to=coywolf@lovecn.org \
    --cc=cate@debian.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lxr-developer@lists.sourceforge.net \
    --cc=lxr@linux.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox