Page MenuHomePhabricator

Uploading of zero byte images without name
Closed, ResolvedPublic

Description

Author: puglisi

Description:
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

Details

Reference
bz538

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:
INSERT INTO image
(img_name,img_size,img_timestamp,img_description,img_user,img_user_text) VALUES
(NULL,'0','20040920155648','ok','3','Hashar')

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.