diff options
author | friendica <info@friendica.com> | 2012-05-01 23:15:39 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-05-01 23:15:39 -0700 |
commit | dd273283900409da66ecc4e9ae5a188d5c2db605 (patch) | |
tree | a28ee643d31a726df8249162e179d7fea0c0bfd6 /boot.php | |
parent | becdb1f5085f2561b8b0acebbdbf43e4a81d50da (diff) | |
download | volse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.tar.gz volse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.tar.bz2 volse-hubzilla-dd273283900409da66ecc4e9ae5a188d5c2db605.zip |
perform basic validation
Diffstat (limited to 'boot.php')
-rw-r--r-- | boot.php | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1520,9 +1520,12 @@ function get_my_url() { } function zrl_init(&$a) { - proc_run('php','include/gprobe.php',bin2hex(get_my_url())); - $arr = array('zrl' => get_my_url(), 'url' => $a->cmd); - call_hooks('zrl_init',$arr); + $tmp_str = get_my_url(); + if(validate_url($tmp_str)) { + proc_run('php','include/gprobe.php',bin2hex($tmp_str)); + $arr = array('zrl' => $tmp_str, 'url' => $a->cmd); + call_hooks('zrl_init',$arr); + } } function zrl($s,$force = false) { |