Re: REGEX (Not allowing file extenstions) or the dot
From: Darren Dunham (ddunham_at_redwood.taos.com)
Date: 10/04/03
- Next message: Andrew Rich: "Re: hack a telnet server?"
- Previous message: Tad McClellan: "Re: REGEX (Not allowing file extenstions) or the dot"
- In reply to: sts_at_news.sts: "REGEX (Not allowing file extenstions) or the dot"
- Next in thread: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Reply: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Reply: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 03 Oct 2003 23:41:23 GMT
sts@news.sts wrote:
> ;RE:^say.*
> I DO NOT WANT TO ALLOW THIS: ".bsp" QUAKE SERVER ONLY NEEDS THE MAP NAME WHICH IS THE NAME OF THE FILE AND
> NOT THE '.' NOR THE 'BSP'. I WANT TO TOTALLY BAN, ".BSP" part of the client's command sent to the server.
> lrcon map map q2dm1.bsp
The question I have is whether you have any command where a period
should appear. If you don't, then just ban all periods. The problem is
that periods are usually special in regular expressions, and I can only
guess that this module and perl use similar syntax.
RE:\. # Ban any command with a period.
If that's too limiting, then this (might) ban anything starting with
lrcon that has a period elsewhere on the line.
RE:^lrcon.*\.
Again, syntax issues for RE are very dependent on what engine is in
use. Hopefully a backslash escapes the period here, but it might not.
It is possible that
RE:^lrcon.*[.]
would work if the above did not..
--
Darren Dunham ddunham@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
- Next message: Andrew Rich: "Re: hack a telnet server?"
- Previous message: Tad McClellan: "Re: REGEX (Not allowing file extenstions) or the dot"
- In reply to: sts_at_news.sts: "REGEX (Not allowing file extenstions) or the dot"
- Next in thread: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Reply: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Reply: sts: "Re: REGEX (Not allowing file extenstions) or the dot"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]