... |
... |
@@ -79,10 +79,7 @@ |
79 |
79 |
#set ($returnURL = $escapetool.url($doc.getURL('view', $request.queryString))) |
80 |
80 |
#set ($deleteURL = $targetAttachDocument.getAttachmentURL($attachment.filename, 'delattachment', "xredirect=${returnURL}&form_token=$!{services.csrf.getToken()}") ) |
81 |
81 |
#set ($viewURL = $targetAttachDocument.getAttachmentURL($attachment.filename) )##{'name' : 'download', 'url' : $viewURL, 'rel' : '__blank'} |
82 |
|
- #set ($selectURL = $targetDocument.getURL(${options.get('docAction')}, $escapetool.url({ |
83 |
|
- "${options.get('classname')}_${options.get('object')}_${options.get('property')}": ${attachment.filename}, |
84 |
|
- 'form_token': $!{services.csrf.getToken()} |
85 |
|
- }))) |
|
82 |
+ #set ($selectURL = $targetDocument.getURL(${options.get('docAction')}, "${options.get('classname')}_${options.get('object')}_${options.get('property')}=${attachment.filename}&form_token=$!{services.csrf.getToken()}")) |
86 |
86 |
#attachmentPicker_displayEndFrame ([{'name' : 'select', 'url' : $selectURL}, {'name' : 'delete', 'url' : $deleteURL}]) |
87 |
87 |
#end |
88 |
88 |
|
... |
... |
@@ -95,9 +95,7 @@ |
95 |
95 |
*# |
96 |
96 |
#macro (attachmentPicker_displayStartFrame $boxOptions $currentValue) |
97 |
97 |
(% class="gallery_attachmentbox $!{boxOptions.cssClass} #if ("$!{boxOptions.value}" == $currentValue) current#{end}" %)((( |
98 |
|
- (% class="gallery_attachmenttitle" title="$services.rendering.escape($!{boxOptions.value}, 'xwiki/2.1')" %)((( |
99 |
|
- $services.rendering.escape($boxOptions.text, 'xwiki/2.1') |
100 |
|
- ))) |
|
95 |
+ (% class="gallery_attachmenttitle" title="$!{boxOptions.value}" %)((($boxOptions.text))) |
101 |
101 |
(% class="gallery_attachmentframe" %)((( |
102 |
102 |
#end |
103 |
103 |
|
... |
... |
@@ -113,13 +113,13 @@ |
113 |
113 |
## Compute the attachment reference because there's no getter. |
114 |
114 |
#set ($attachmentReference = $services.model.createAttachmentReference($attachment.document.documentReference, |
115 |
115 |
$attachment.filename)) |
116 |
|
- #set ($attachmentStringReference = $services.rendering.escape($services.model.serialize($attachmentReference, 'default'), 'xwiki/2.1')) |
|
111 |
+ #set ($attachmentStringReference = $services.model.serialize($attachmentReference, 'default')) |
117 |
117 |
#if ($attachment.isImage() && $options.displayImage) |
118 |
118 |
## We add the version to the query string in order to invalidate the cache when an image attachment is replaced. |
119 |
119 |
#set ($queryString = $escapetool.url({'version': $attachment.version})) |
120 |
120 |
[[[[image:${attachmentStringReference}||width=180 queryString="$queryString"]]>>attach:$attachmentStringReference]] |
121 |
121 |
#else |
122 |
|
- * (% class="mime" %){{html wiki=false clean=false}}#mimetypeimg($attachment.getMimeType().toLowerCase() $attachment.getFilename().toLowerCase()){{/html}}(%%) (% class="filename" %)$services.rendering.escape($attachment.getFilename(), 'xwiki/2.1')(% %) |
|
117 |
+ * (% class="mime" %){{html wiki=false clean=false}}#mimetypeimg($attachment.getMimeType().toLowerCase() $attachment.getFilename().toLowerCase()){{/html}}(%%) (% class="filename" %)$attachment.getFilename()(% %) |
123 |
123 |
* v$attachment.getVersion() (#dynamicsize($attachment.longSize)) |
124 |
124 |
* $services.localization.render('core.viewers.attachments.author', [$!{xwiki.getUserName($attachment.author, false)}]) $services.localization.render('core.viewers.attachments.date', [$!{xwiki.formatDate($attachment.date, 'dd/MM/yyyy hh:mm')}]) |
125 |
125 |
* (% class="buttonwrapper" %)[[${services.localization.render("${translationPrefix}.actions.download")}>>attach:${attachmentStringReference}||title="$services.localization.render("${translationPrefix}.actions.download")" rel="__blank" class="button"]](%%) |