summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-01-17 13:41:27 +0400
committerAndrew Dolgov <[email protected]>2014-01-17 13:41:27 +0400
commit4c63934bacb628789897dc2e599e5aa30e76ccd5 (patch)
tree0654fd723f5f0478b4cfa65a9d8e27421b3deae7 /include
parent07083d9caad0073327ef2a39a895965f7a483491 (diff)
increase randomness of shared url keys a bit
Diffstat (limited to 'include')
-rw-r--r--include/functions.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php
index fce15b535..28b7a7c89 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -3753,7 +3753,7 @@
if (db_num_rows($result) == 1) {
return db_fetch_result($result, 0, "access_key");
} else {
- $key = db_escape_string(uniqid());
+ $key = db_escape_string(uniqid(base_convert(rand(), 10, 36)));
$result = db_query("INSERT INTO ttrss_access_keys
(access_key, feed_id, is_cat, owner_uid)