https://bugzilla.wikimedia.org/show_bug.cgi?id=45937
Web browser: ---
Bug ID: 45937
Summary: ApiQueryAllMessages does not validate language code
Product: MediaWiki
Version: 1.21-git
Hardware: All
URL: http://translatewiki.net/w/api.php?action=query&meta=a
llmessages&ammessages=august|mainpage&amlang=%3Chtml%3
E
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
Classification: Unclassified
Mobile Platform: ---
<?xml version="1.0"?>
<api>
<error code="internal_api_error_MWException" info="Exception Caught: Invalid
language code "<html>"" xml:space="preserve">
#0 /www/translatewiki.net/w/languages/Language.php(189):
Language::newFromCode('<html>')
#1 /www/translatewiki.net/w/includes/api/ApiQueryAllMessages.php(45):
Language::factory('<html>')
#2 /www/translatewiki.net/w/includes/api/ApiQuery.php(273):
ApiQueryAllMessages->execute()
#3 /www/translatewiki.net/w/includes/api/ApiMain.php(840): ApiQuery->execute()
#4 /www/translatewiki.net/w/includes/api/ApiMain.php(380):
ApiMain->executeAction()
#5 /www/translatewiki.net/w/includes/api/ApiMain.php(351):
ApiMain->executeActionWithErrorHandling()
#6 /www/translatewiki.net/w/api.php(77): ApiMain->execute()
#7 {main}
</error>
</api>
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l