diff options
author | zotlabs <mike@macgirvin.com> | 2018-11-22 18:39:38 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-11-22 18:39:38 -0800 |
commit | 9a8d1200ecc9f877b431a00a5219b41d2bd68de6 (patch) | |
tree | b6afc65e731be86dec77e46bde1fc9f6343bda9d /include/attach.php | |
parent | 8e713245144d0bcedca0d3345017b5fa232c8ca3 (diff) | |
download | volse-hubzilla-9a8d1200ecc9f877b431a00a5219b41d2bd68de6.tar.gz volse-hubzilla-9a8d1200ecc9f877b431a00a5219b41d2bd68de6.tar.bz2 volse-hubzilla-9a8d1200ecc9f877b431a00a5219b41d2bd68de6.zip |
use uuid in file storage
Diffstat (limited to 'include/attach.php')
-rw-r--r-- | include/attach.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/attach.php b/include/attach.php index 6b0d3fb3b..dd718aa14 100644 --- a/include/attach.php +++ b/include/attach.php @@ -739,7 +739,7 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { } if(! $hash) - $hash = random_string(); + $hash = new_uuid(); // Check storage limits if($options !== 'update') { @@ -1122,7 +1122,7 @@ function attach_mkdir($channel, $observer_hash, $arr = null) { return $ret; } - $arr['hash'] = (($arr['hash']) ? $arr['hash'] : random_string()); + $arr['hash'] = (($arr['hash']) ? $arr['hash'] : new_uuid()); // Check for duplicate name. // Check both the filename and the hash as we will be making use of both. |