Daniel Kinzler has uploaded a new change for review. Change subject: Prevent direct editing of structured content. ......................................................................
Prevent direct editing of structured content. This patch prevents the use of the API's edit action on any content in the entity namespace to avoid text-level manipulation of the JSON content. This also prevents content of the wrong type in entity namespaces. Once I37b0e42e is merged, this patch also prevents entities to be saved to other namespaces than their own. Change-Id: I4d554f4e35ef4a5fa3bb2051ea0001480ace0ca2 --- M repo/Wikibase.hooks.php M repo/Wikibase.i18n.php M repo/Wikibase.php M repo/includes/content/EntityHandler.php M repo/tests/phpunit/includes/api/ApiEditPageTest.php M repo/tests/phpunit/includes/content/EntityHandlerTest.php 6 files changed, 121 insertions(+), 80 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase refs/changes/13/23413/1 -- To view, visit https://gerrit.wikimedia.org/r/23413 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I4d554f4e35ef4a5fa3bb2051ea0001480ace0ca2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Wikibase Gerrit-Branch: master Gerrit-Owner: Daniel Kinzler <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
