mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:45:55 +00:00
add one catchall function to make uniqids/keyhashes/etc used by tt-rss
This commit is contained in:
@@ -407,7 +407,7 @@ class Instances extends Plugin implements IHandler {
|
||||
|
||||
print "<hr/>";
|
||||
|
||||
$access_key = uniqid(rand(), true);
|
||||
$access_key = uniqid_short();
|
||||
|
||||
/* Access key */
|
||||
|
||||
@@ -439,7 +439,7 @@ class Instances extends Plugin implements IHandler {
|
||||
}
|
||||
|
||||
function genHash() {
|
||||
$hash = uniqid(base_convert(rand(), 10, 36));
|
||||
$hash = uniqid_short();
|
||||
|
||||
print json_encode(array("hash" => $hash));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user