Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
1 result

mapper.php

Blame
    • Joas Schilling's avatar
      1846aebf
      Use md5() of the original name instead of uniqid() for slugifying · 1846aebf
      Joas Schilling authored
      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
      1846aebf
      History
      Use md5() of the original name instead of uniqid() for slugifying
      Joas Schilling authored
      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