Special:PagesWithProp: Do not show very long or binary values
authorMatmaRex <matma.rex@gmail.com>
Tue, 23 Jul 2013 15:40:28 +0000 (17:40 +0200)
committerMatmaRex <matma.rex@gmail.com>
Tue, 23 Jul 2013 16:26:28 +0000 (18:26 +0200)
commit9a829641b511e9987a2f01af3982c0ee52d38655
tree0d36188f89a105024651bc273c84dab2976dc974
parent907cdce0db4f39db1b0fb639c27c2891757ac509
Special:PagesWithProp: Do not show very long or binary values

It already looks rather silly when querying for 'templatedata' prop
from the TemplateData extension (e.g. [1]), it will start looking much
worse once Ie66b0dd6 in TemplateData is merged (which makes it store
the props gzip-compressed).

Do not show very long (over 1 kB) or binary (containing a null byte)
values; instead display a helpful message and size.

Changing the display format slightly, it's now "Page: <propvalue-or-message>"
instead of "Page (<propvalue-or-message>)", because the helpful
messages themselves include parentheses.

[1] https://en.wikipedia.org/wiki/Special:PagesWithProp?propname=templatedata

Bug: 51888
Change-Id: Ib2db241a117b06faee2426c8ea9ae18eab499e08
includes/specials/SpecialPagesWithProp.php
languages/messages/MessagesEn.php
languages/messages/MessagesQqq.php
maintenance/language/messages.inc