New script service for URL security operations

Last modified by Simon Urli on 2023/01/30

A new script service has been introduced to allow performing security checks on URL. The script service currently provides a single method which can be used like that:

{{velocity}}
#set ($myURL = "http://xwiki.org")
#set ($safeURI = $services.security.url.parseToSafeURI($myURL))
## The URI is null if not safe.
#if ($safeURI)
 ## use it as an URI object. 
#end
{{/velocity}}
Tags:
   

Get Connected