logo       

[Bug 20012] New: Glossary: Don't parse empty content: msg#02997

wikibugs-l

Subject: [Bug 20012] New: Glossary: Don't parse empty content

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

Summary: Glossary: Don't parse empty content
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: General/Unknown
AssignedTo: wikibugs-l@xxxxxxxxxxxxxxxxxxx
ReportedBy: hickseydr@xxxxxxxxxxxxxxx


From
http://www.mediawiki.org/wiki/Extension:Glossary#Don.27t_parse_empty_content

Glossary will attempt to parse zero length content and as a result, it may
cause everything to fail. The simple fix is to open Glossary.php and find:

if ($rev) {

And replace with:

if ($rev && $text) {



To think about this in a wider context, is there any reason why the parser hook
is being called on zero length content in the first place?


--
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
Wikibugs-l@xxxxxxxxxxxxxxxxxxx
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | Mail Home | sitemap | FAQ | advertise