aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-05-01 23:15:39 -0700
committerfriendica <info@friendica.com>2012-05-01 23:15:39 -0700
commitdd273283900409da66ecc4e9ae5a188d5c2db605 (patch)
treea28ee643d31a726df8249162e179d7fea0c0bfd6 /include
parentbecdb1f5085f2561b8b0acebbdbf43e4a81d50da (diff)
downloadvolse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.tar.gz
volse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.tar.bz2
volse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.zip
perform basic validation
Diffstat (limited to 'include')
-rw-r--r--include/gprobe.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/gprobe.php b/include/gprobe.php
index 5ca42729a..b4edbe4db 100644
--- a/include/gprobe.php
+++ b/include/gprobe.php
@@ -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))
);