Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. VincentMassol1 +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.