https://bugzilla.wikimedia.org/show_bug.cgi?id=20780

           Summary: Upload of MIDI file erroneously rejected
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: Normal
         Component: Uploading
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Uploading the MIDI file at http://mbednarek.com/temp/maidensprayer.mid results
in the error message: "This file contains HTML or script code that may be
erroneously interpreted by a web browser."

According to user Splarka at
http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=315675310#Upload_MIDI
this happend because this particular file happened to have the string "<A" in
its first 1024 characters. That string is part of a valid MIDI instruction.

Binary files, like MIDI files, should not be subject to screening for text
strings; fragments like "<A" in this case can obviously occur outside the
context of "HTML or script code."

User Splarka mentioned that "UploadBase.php" might be at the core of the
problem.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to