]> source.dussan.org Git - nextcloud-server.git/commit
Use md5() of the original name instead of uniqid() for slugifying
authorJoas Schilling <nickvergessen@gmx.de>
Mon, 25 Aug 2014 12:29:07 +0000 (14:29 +0200)
committerJoas Schilling <nickvergessen@gmx.de>
Mon, 25 Aug 2014 13:06:12 +0000 (15:06 +0200)
commit1846aebfff14971d4c99a04cfe1a90a77c7591ba
tree16918132cae4ad742baebfd041143de3e6e495b4
parentb861e1d69670c023f48c621d1c6bc07016f5400d
Use md5() of the original name instead of uniqid() for slugifying

Previously we used uniqid() here.
However this means that the behaviour is not reproducable, so
when uploading files into a "empty" folder, the folders name is
different.

If there would be a md5() hash collition, the deduplicate check
will spot this and append an index later, so this should not be
a problem.

Fix #6722
lib/private/files/mapper.php