Original name preserved in uploaded file.
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 16 Apr 2014 21:17:27 +0000 (23:17 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 16 Apr 2014 21:17:27 +0000 (23:17 +0200)
commitd3b4a8616d9cd4918c2ab0226afc76ec717a0052
treea12f8797e245f0209349267ca08a4845a15c76a0
parent5ef6ee4bc55e2d13c9c0556560df0254fcfe655a
Original name preserved in uploaded file.

Avoiding collisions with date (shorter than before) and 4 character
random alphanumeric string. I bet someone could mass-upload files
and generate all combinations of aaaa-zzzz during the course of a
day, but then maybe that user should be disabled anyway :)
(filling the collision space will cause a never-ending loop).
classes/File.php
lib/attachmentlist.php
lib/mediafile.php