Page MenuHomePhabricator

Uploading of zero byte images without name
Closed, ResolvedPublic


Author: puglisi

If you leave the filename field empty and just press the "upload" button, a zero
byte file without name will be uploaded and registered in recent changes.
Attempting to edit the corresponding page will result in an invalid name error.

Version: 1.3.x
Severity: normal



Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 6:56 PM
bzimport set Reference to bz538.

We need to stamp out these silly problems once and for all.

Make sure it's fixed in both branches...

in cvs it reports an sql error:
(img_name,img_size,img_timestamp,img_description,img_user,img_user_text) VALUES

Taking care of this bug.

The upload form now print an 'emptyfile' error message if filename is empty.

tomk32 wrote:

getting error 'emptyfile' if I re-upload a file.

reproduced it by uploading a file which already existis.

Reupload form use a different variable for the name. Should be fixed now.