1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-31 21:51:29 +00:00

add one catchall function to make uniqids/keyhashes/etc used by tt-rss

This commit is contained in:
Andrew Dolgov
2015-08-03 19:21:06 +03:00
parent e053fd8d6b
commit 3ceb893f66
5 changed files with 12 additions and 8 deletions

View File

@@ -1893,7 +1893,7 @@ class Pref_Feeds extends Handler_Protected {
AND owner_uid = " . $owner_uid);
if ($this->dbh->num_rows($result) == 1) {
$key = $this->dbh->escape_string(uniqid(base_convert(rand(), 10, 36)));
$key = $this->dbh->escape_string(uniqid_short());
$this->dbh->query("UPDATE ttrss_access_keys SET access_key = '$key'
WHERE feed_id = '$feed_id' AND is_cat = $sql_is_cat