Skip to content
Snippets Groups Projects
Commit f6044441 authored by Manuel Leduc's avatar Manuel Leduc
Browse files

XWIKI-20454: Client side mimetype restriction check does not take into account the right document

Fix webstandards validation issue.
parent 3842e213
No related branches found
No related tags found
No related merge requests found
...@@ -36,11 +36,13 @@ ...@@ -36,11 +36,13 @@
<minorEdit>false</minorEdit> <minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId> <syntaxId>xwiki/2.1</syntaxId>
<hidden>true</hidden> <hidden>true</hidden>
<content>{{velocity wiki='false'}} <content>{{velocity wiki="false"}}
#if ($request.documentReference)
$jsontool.serialize({ $jsontool.serialize({
"allowedMimetypes": $services.attachmentValidation.getAllowedMimetypes($!request.documentReference), "allowedMimetypes": $services.attachmentValidation.getAllowedMimetypes($request.documentReference),
"blockerMimetypes": $services.attachmentValidation.getBlockerMimetypes($!request.documentReference) "blockerMimetypes": $services.attachmentValidation.getBlockerMimetypes($request.documentReference)
}) })
#end
{{/velocity}}</content> {{/velocity}}</content>
<object> <object>
<name>XWiki.Attachment.Validation.Code.MimetypeValidation</name> <name>XWiki.Attachment.Validation.Code.MimetypeValidation</name>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment