Last modified: 2011-03-13 18:05:05 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T25270, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 23270 - This file contains HTML or script code that may be erroneously interpreted by a web browser
This file contains HTML or script code that may be erroneously interpreted by...
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Lowest major (vote)
: ---
Assigned To: Nobody - You can work on this!
: shell
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-04-21 13:40 UTC by 84user
Modified: 2011-03-13 18:05 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description 84user 2010-04-21 13:40:34 UTC
Wikimedia Commons reports "This file contains HTML or script code that may be erroneously interpreted by a web browser" on certain image uploads.

Example: [[:Commons:File:Shimon_Peres_-_World_Economic_Forum_on_the_Middle_East_2009.jpg]]

When I (and others) try to upload the original size image from [http://farm4.static.flickr.com/3314/3538858190_071e0a49bb_o.jpg] linked from http://www.flickr.com/photos/worldeconomicforum/3538858190/sizes/o/, then Wikimedia Commons always reports the above error. I believe this is a known problem but could not find a bugzilla report for it.
Comment 1 84user 2010-04-21 15:00:21 UTC
See http://commons.wikimedia.org/wiki/Commons:Village_pump#File:Shimon_Peres_-_World_Economic_Forum_on_the_Middle_East_2009.jpg

I had to remove all the markers from the JPG file before mediawiki upload would accept it. [[Bugzilla:16583]] "MIME type detection of "application/x-php" gives false positives on any file with "<?" in it" describes a similar problem, that might have the same cause as this one, except the first "<?" in the Shimon_Peres image does not appear until byte 16401. Note I have since uploaded two versions of the image.
Comment 2 84user 2010-04-21 15:40:03 UTC
Note: this particular image file was finally uploaded together with its EXIF and IPTC data by manually editing the embedded HTML code: "<a href" and "</a>" changed to "[a href" and "[/a]" respectively. The first "<a href" occurred at byte 407.
Comment 3 Bryan Tong Minh 2010-04-26 16:20:03 UTC
Unfortunately, Internet Explorer will detect this file as HTML and thus execute any containing scripts etc. Therefore we have to reject these files.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links