Last modified: 2010-05-15 15:37:28 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 1311 - Show a small PDF.png icon for files of filetype PDF (at least for media: links to uploaded files which filetypes has been checked to be PDF)
Show a small PDF.png icon for files of filetype PDF (at least for media: link...
Status: RESOLVED DUPLICATE of bug 1578
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-01-11 07:51 UTC by T. Gries
Modified: 2010-05-15 15:37 UTC (History)
0 users

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


Description T. Gries 2005-01-11 07:51:22 UTC
I propose to show in general a small ***pdf icon*** for such links pointing to a
PDF file. This would be similar to small icon external.png, which is already
shown after every _external_ link. It could be handled in monobook.css.

For security reasons, the icon could probably be shown only for media: links to
uploaded files which filetypes has been checked to be PDF during or after the


> Hendrik wrote:

> How do you want to detect whether an URL points to a PDF-file (i. e. not
something that Internet
> Explorer would executeable but is called "something.pdf")
> Hendrik


as the subject says: I only propose to show an icon, I did not propose to scan
file types of something extern. If that file is internal i.e. linked via the
[[media:filename.pdf]] notation, then the server has potentially the chance to
check the "magic" byte of that file; if it is external, i.e.
[http://server/filename.pdf|othername], you can only argue from the filename.pdf
that it pretends to be "PDF" . If you see a security problem, what does the
(PDF.png vs. external.png ?) icon change in this respect ? Nothing; 

but with my proposal you could even have ***two*** different PDF icons, a green
"secure" icon for internal (filetype scanned) [[media:filename.pdf]] files and a
red "insecure" alerting one ("extern; probably PDF") for the others. This is
just meant as an ad-hoc proposal to show you the positive possibilities of my

Does my answer satisfy you ?

Comment 1 Zigger 2005-11-04 12:50:06 UTC

*** This bug has been marked as a duplicate of 1578 ***

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