Most voted "sanitize" questions
Sanitization is the process of removing specific characters from a value, which are not required or desired by the user or application.
Learn more…7 questions
Sort by count of
-
24
votes7
answers59028
viewsRefactoring function to remove punctuation, spaces and special characters
I have this function already too old to "clean" the contents of a variable: Function function sanitizeString($string) { // matriz de entrada $what = array(…
-
5
votes1
answer137
viewsWhy does FILTER_SANITIZE_EMAIL not remove some special characters?
I know how the FILTER_SANITIZE_EMAIL works, but what I can’t understand is why it doesn’t remove the following characters: ! # $% & '* + - =? ^ _ `{|} ~ @. [] . I know that in the documentation…
-
3
votes2
answers123
viewsSanitize email address
Assuming the following email address: $email = "zuúl@ so.pt"; I tried to proceed to sanitize the same by making use of: filter_var($email, FILTER_SANITIZE_EMAIL); // [email protected] I tried too:…
-
1
votes1
answer364
viewsUse filter_input(FILTER_SANITIZE_NUMBER_INT) in an array with integer type entries
I have the following form: <form action="<?=PATH_ROOT?>professor/cadastrar" method="post"> Matrícula: <input type="text" name="matricula"> <br><br> Nome: <input…
-
1
votes0
answers120
viewsHow to create a filter for a multi-dimensional Mixed array
I have in my POST complex variables with arrays inside other arrays and etc. Behold: $filtro['esms_conta_id'] = 120; $filtro['data_inicio'] = 2016-010-1; $filtro['data_final'] = 2016-010-1;…
-
1
votes1
answer432
viewsHow to increase text font with Ngsatinize?
I am not managing to increase or decrease the source of my news, which is with the attribute Ngsatinize, does anyone know how to modify it ? or another way to satinize my html ?
-
0
votes0
answers845
viewsWhy does the message "Do not access superglobal array directly" appear?
How can I use the array $_GET without giving this problem (Netbeans), since even when I use it in this way gives error: $var = isset($_GET['variavel'])?filter_var($_GET['variavel'],…