perform basic validation
This commit is contained in:
parent
becdb1f508
commit
dd27328390
2 changed files with 9 additions and 3 deletions
|
|
@ -33,6 +33,9 @@ function gprobe_run($argv, $argc){
|
|||
|
||||
$url = hex2bin($argv[1]);
|
||||
|
||||
if(! validate_url($url))
|
||||
return;
|
||||
|
||||
$r = q("select * from gcontact where nurl = '%s' limit 1",
|
||||
dbesc(normalise_link($url))
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue