Sanitize user input: Difference between revisions

no edit summary
(removed "task")
No edit summary
Line 5:
 
;Task:
Create a function that takes a list of 20 first and last names, and copies them to a record or struct. The listTen of namesthem won'tmust be providedtypical hereinput, because exploits like the Bobby Tables one are often language-specific(i.e. Tryconsist toof showonly an exampleletters of athe "Bobby Tables" style input in your list of namesalphabet and howpunctuation), yourbut functionthe preventsother itten frommust beingbe executeddeliberately atchosen runtime.to Forcause example,problems createwith a filterprogram that preventsexpects inputonly thatletters looksand likepunctuation. yourA language'sfew instructions from being entered, or escape it with the appropriate escape characters.examples:
* ASCII control codes such as NUL, CR, LF
* Code for the language you are using that can result in damage (e.g. -rm -rf, delete System32, DROP TABLE, etc.)
* Numbers, symbols, foreign languages, emojis, etc.
 
(There were already solutions provided before the requirement that ten names are "normal" and ten are potentially harmful was added. Those answers satisfied the task requirements at the time they were submitted.)
 
;Related tasks
1,489

edits