1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-14 03:35:56 +00:00

increase randomness of shared url keys a bit

This commit is contained in:
Andrew Dolgov
2014-01-17 13:41:27 +04:00
parent 07083d9caa
commit 4c63934bac
4 changed files with 6 additions and 6 deletions

View File

@@ -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)