[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] YA FA Yet Stupid Question



on 5/19/99 6:54 PM, Chilton Webb wrote...
>I know this doesn't deal with MacPerl, but it does deal with security in 
>the (new) MacPerl section at DevHQ, and I need a quick answer.
>
>I've noticed that the semicolon character (;) can be used to send 
>commands to the server in cases where the server is a unix machine and 
>the argument in the url is sent directly to a unix function. 
>
>Is there a way to capture and remove that character from a string? I've 
>tried...
>
> $url =~ s/\;/<BR>/g;

Should work, that is if the ';' character is in $url. You don't need to 
escape a ';'.

     s/;/<br>/g;

>But this doesn't work at all. And searching the pods for the word 
>semicolon didn't turn up anything, and I'm not about to go searching them 
>for every actual semicolon :)
>
>Quick answer, anyone?
>
>-Chilton

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org