]> git.mxchange.org Git - friendica.git/blobdiff - mod/redir.php
random_string calls
[friendica.git] / mod / redir.php
index 088a5f55e30754ddf34d4c273dd4b5a00b4b956c..6077a26f9a2925041edb20572dd54f969d664ac7 100644 (file)
@@ -8,6 +8,7 @@ use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\Model\Contact;
 use Friendica\Model\Profile;
+use Friendica\Util\Strings;
 
 function redir_init(App $a) {
 
@@ -93,7 +94,7 @@ function redir_init(App $a) {
                                $dfrn_id = '0:' . $orig_id;
                        }
 
-                       $sec = random_string();
+                       $sec = Strings::getRandomHex();
 
                        $fields = ['uid' => local_user(), 'cid' => $cid, 'dfrn_id' => $dfrn_id,
                                'sec' => $sec, 'expire' => time() + 45];