https://bugzilla.wikimedia.org/show_bug.cgi?id=49423
Web browser: ---
Bug ID: 49423
Summary: mw.language.isKnownLanguageTag fails with fatal
internal error if parameter includes an apostrophe
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Scribunto
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
It should return false.
Note that the underlying error may be in Language::isKnownLanguageTag.
Here's a test page: https://test.wikipedia.org/wiki/Foo%27s_bar
And here's the module:
https://test.wikipedia.org/wiki/Module:IsKnownLanguageTag
You can just test this with mw.language.isKnownLanguageTag("'") or something
like that.
Obviously, it should return false -- it's not a known language code!
--
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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l