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: 321

Filed under:
|
|

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

Related posts about php

Related posts about mysql