summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2015-08-03 19:21:06 +0300
committerAndrew Dolgov <[email protected]>2015-08-03 19:21:06 +0300
commit3ceb893f66920383b0f79faf1fc896469ee3d2a4 (patch)
tree27a9601fe635af1c4410133edbe141574bf389d6 /classes
parente053fd8d6bd02ea1943b61f3ace5396845c2d1db (diff)
add one catchall function to make uniqids/keyhashes/etc used by tt-rss
Diffstat (limited to 'classes')
-rw-r--r--classes/pref/feeds.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/pref/feeds.php b/classes/pref/feeds.php
index d70c1a26a..efa2c2af9 100644
--- a/classes/pref/feeds.php
+++ b/classes/pref/feeds.php
@@ -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