Commit Diff
--- index.php +++ index.php @@ -23,7 +23,7 @@ function count_urls($mysqli) { } function generate_short($url, $mysqli) { - $url = stripslashes($url); + $url = mysqli_real_escape_string($mysqli, $url); if(!preg_match("/^((https?|ftp)[:\/\/].*\/{2,})/i",$url)) { return false; }