Created
October 12, 2018 00:27
-
-
Save le717/be9d1ccf42281aa260f05915ea1cdac0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function sqlURL($sql_input) { | |
$res = parse_url($sql_input); | |
if(!isset($res['scheme'])) { | |
$sql_input = "http://".$sql_input; | |
} | |
$sql_input = str_replace("'","\'",stripslashes($sql_input)); | |
$sql_input = str_replace("<","",$sql_input); | |
$sql_input = str_replace(">","",$sql_input); | |
return $sql_input; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment