PHP URL Security Question
Posted
by TaG
on Stack Overflow
See other posts from Stack Overflow
or by TaG
Published on 2010-04-01T14:21:42Z
Indexed on
2010/04/01
14:23 UTC
Read the original article
Hit count: 349
I want to have users store the url in my database I'm using php mysql and htmlpurifier I was wondering if the following code was good way to filter out bad data?
Here is the Partial PHP code.
$url = mysqli_real_escape_string($mysqli, $purifier->purify(htmlspecialchars(strip_tags($_POST['url'])));
© Stack Overflow or respective owner