RE: shell variable security
We have all heard about security problems with shell variables
You can also put quotes around it when you use it...
echo "$Name"
This is good practice just in case someone puts "whitespace" into their input.
<<winmail.dat>>
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe:
https://www.redhat.com/mailman/listinfo/fedora-list
Relevant Pages
- Re: extracting lines from an address
... This method has a couple of minor shortcomings - it does not eliminate all unnecessary whitespace (specifically, it does not look at whitespace at the beginning of the address field - if there were any, nor does it look at trailing whitespace). ... puts "oops... ... (comp.lang.ruby) - Re: spaces (and worse) in names ?
... replace any whitespace characterwith a single space. ... But this seldom matters in practice; we hardly need to rely on preservation of leading or trailing spaces. ... (comp.infosystems.www.authoring.html) - Re: What is wrong with: puts "Data={" ?
... >>outside of any surrounding blocks, ... if puts "" took the inner braces into account when doing the outer ... echo "$USER" ... (comp.lang.tcl) - Re: help me out with subroutines
... It's also worth mentioning that *echo* isn't trimming the whitespace ... The *shell* tokenizes the command line on whitespace, ... (comp.unix.questions) - Re: redirecting in the middle of a code
... Cannot modify header information - headers already sent by ... any print or echo statement to have caused this. ... posted only a small portion of the code and the offending echo or whitespace ... Hint: Do what Paul said. ... (comp.lang.php) |
|