Commit b5950cfb authored by Peter Tönnies's avatar Peter Tönnies Committed by Peter Tönnies

more entropy to uniqid

parent 0bfad666
......@@ -183,7 +183,7 @@ class WallPostXhr extends Control
}
if (isset($_FILES['etattach']['size']) && $_FILES['etattach']['size'] < 9136365 && $this->attach_allow($_FILES['etattach']['name'])) {
$new_filename = uniqid();
$new_filename = uniqid('', true);
$ext = strtolower($_FILES['etattach']['name']);
$ext = explode('.', $ext);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment