<
From version < 46.1 >
edited by Vincent Massol
on 2009/11/16
To version < 47.1 >
edited by Guillaume Lerouge
on 2009/11/17
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.GuillaumeLerouge
Content
... ... @@ -218,8 +218,8 @@
218 218  {{velocity}}
219 219  #if("$!request.docName" != '')
220 220   ## Request for creating a new instance
221 - #set($targetDocName = "${request.spaceName}.${request.docName}")
222 - #set($targetDocName = $targetDocName.replace("?", "").replace("#", "").trim())
221 + #set($docName = $util.clearName(${request.docName}))
222 + #set($targetDocName = "${request.spaceName}.${docName}")
223 223   #if(!$xwiki.exists($targetDocName) && $xwiki.hasAccessLevel('edit', $context.user, $targetDocName))
224 224   $response.sendRedirect($xwiki.getURL($targetDocName, 'inline', "template=${request.template}&parent=${request.parent}"))
225 225   ## Stop processing, since we already sent a redirect.

Get Connected