Questions tagged as 'sanitize'

5
answers

Function refactoring to remove punctuation, spaces, and special characters

I have this function too old to "clean" the contents of a variable: Function function sanitizeString($string) { // matriz de entrada $what = array( 'ä','ã','à','á','â','ê','ë','è','é','ï','ì','í','ö','õ','ò','ó','ô','ü','ù','ú','...
asked by 22.12.2013 / 17:08
2
answers

Sanitize email address

Assuming the following email address: $email = "zuúl@ so.pt"; I tried to clean it using: filter_var($email, FILTER_SANITIZE_EMAIL); // [email protected] I've also tried: preg_replace('/[[:punct:]]/', '', $email); // zuúl sopt The idea is...
asked by 21.10.2014 / 15:03
1
answer

Use filter_input (FILTER_SANITIZE_NUMBER_INT) in an array with integer type items

I have the following form: <form action="<?=PATH_ROOT?>professor/cadastrar" method="post"> Matrícula: <input type="text" name="matricula"> <br><br> Nome: <input type="text" name="nome"...
asked by 07.12.2014 / 15:02
1
answer

How to increase text font with NgSatinize? [closed]

I'm not able to increase or decrease the source of my news, which has the NgSatinize attribute, does anyone know how to modify it? or another way to saturate my html?     
asked by 20.11.2016 / 18:34
0
answers

How to create a filter for a mixed multidimensional array

I have in my POST complex variables with arrays inside other arrays and so on. See: $filtro['esms_conta_id'] = 120; $filtro['data_inicio'] = 2016-010-1; $filtro['data_final'] = 2016-010-1; $filtro['status']['accepted'] = true; $filtro['status'...
asked by 01.08.2016 / 20:15
0
answers

Why does the message "Do not access superglobal array directly" appear?

How can I use the array $_GET without this problem (Netbeans), since even when I use it this way it gives an error: $var = isset($_GET['variavel'])?filter_var($_GET['variavel'], FILTER_SANITIZE_NUMBER_INT): false;     
asked by 16.06.2017 / 16:42