Re: shell variable security



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.

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: "Dollhouse" = Duh-house
    ... He ripped through the Dollhouse, sparing Echo ... emergence of Echo as a character. ... original personality doesn't make it so. ...
    (rec.arts.tv)
  • Re: "Dollhouse" = Duh-house
    ... He ripped through the Dollhouse, sparing Echo ... emergence of Echo as a character. ... original personality doesn't make it so. ...
    (rec.arts.tv)
  • Re: trying to recursively get the files owners and permissions as well as an md5sum of the data
    ... memory taxing", which are both measurable, but "better" because md5sum is ... The NUL character is the one character that cannot ... xargs -0 tells xargs to split it's ... Here, as the cmd is not provided, xargs calls the "echo" command ...
    (comp.unix.shell)
  • Re: "Dollhouse" = Duh-house
    ... He ripped through the Dollhouse, sparing Echo ... emergence of Echo as a character. ... original personality doesn't make it so. ...
    (rec.arts.tv)
  • Re: Question about RS232 compatibility
    ... some modem setups automatically assume full sync operation/ others will take shortcuts and "leave out" some handhsake signals to ... to hardware devices can be picky and truly unforgiving. ... I use an echo character scheme where the sending device ... for some reason the echo just breaks down. ...
    (microsoft.public.vb.general.discussion)