Re: shell variable security

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

 



I guess this is easier than using a temp variable (I know, I'm using a
condition - but I had missed that part of your question on my first
posting).

if [ "$name" !> "${name%%+(;|:)*}"
then
   echo "Invalid character!"
fi

In the meantime I echo Jonathan's question.  I also tested this and
was unable to make the exploit work. It simply echoed what I typed,
semi-colon and all.

Jacques b.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux