Last modified: 2010-05-15 15:37:28 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 T3311, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
1.5.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  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: ---


Attachments

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
upload.

Tom

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


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
proposal.

Does my answer satisfy you ?

Tom
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.


Navigation
Links