Afficher un message
Vieux 15/03/2008, 04h51   #3
Bill Marcum
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: cgi using shell script : unexpected behavior

On 2008-03-15, newbiegalore <banerjee.anirban@gmail.com> wrote:
>
>
> #check for ; and |
> flag=(`echo $input | awk 'BEGIN{flag=0} /;|%3B/{flag=1} /\||%7C/
> {flag=2} END{print flag}'`)
>
> if [ $flag -e 0 ];


I think you men if [ $flag -eq 0 ];
Actually it should be if [ "$flag" -eq 0 ]; Shell variables should be
quoted unless you want them to undergo word splitting and filename
expansion.
  Réponse avec citation
 
Page generated in 0,04931 seconds with 9 queries