all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Barnett <spamhater42+U030124070218@grymoire.com>
Subject: Re: NON-trivial regular expression problem (could not find on google)
Date: 24 Jan 2003 11:20:11 GMT	[thread overview]
Message-ID: <b0r7hb$3uo$0@208.20.133.66> (raw)
In-Reply-To: 7606630f.0301181219.60384da2@posting.google.com

democrat@india.com (Instant Democracy) writes:

> The task is to eliminate patterns such as 
>     DIRNAME/../
> from the path because they are redundant.

I assume that you are also trying to deal with security issues.
(Someone trying deliberately to gain access to fles outside of a directory)

Don't forget to include these cases:

        DIRNAME/./../
        DIRNAME/././../ etc.

        And also consider whatever quoting/conversions might occur.
        Hex encoding? Backslashes?

        How are "//" interpreted? Some cases these are treated as a single slash.
        Other cases it's the top of the directory.

        A/DIRNAME//../ - is this A, or / ?



-- 
Sending unsolicited commercial e-mail to this account incurs a fee of 
$500 per message, and acknowledges the legality of this contract.

      parent reply	other threads:[~2003-01-24 11:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-18 20:19 NON-trivial regular expression problem (could not find on google) Instant Democracy
2003-01-18 21:38 ` Harry Putnam
2003-01-18 21:46 ` Kai Großjohann
2003-01-18 22:52 ` AW
2003-01-18 23:03 ` Edi Weitz
2003-01-19  0:27 ` Larry Clapp
2003-01-19  0:36 ` Dr. Yuan Liu
2003-01-19  0:53 ` John W. Krahn
2003-01-19  1:05 ` William Park
2003-01-19 12:17 ` Peter J. Acklam
2003-01-19 19:26   ` Dr. Yuan Liu
2003-01-20  9:15     ` Peter J. Acklam
2003-01-24 18:56       ` Yuan Liu
2003-01-24 11:20 ` Bruce Barnett [this message]

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='b0r7hb$3uo$0@208.20.133.66' \
    --to=spamhater42+u030124070218@grymoire.com \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.