Class XSSApi
java.lang.Object
org.jenkinsci.plugins.github.util.XSSApi
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
public final class XSSApi
extends Object
- Author:
- lanwen (Merkushev Kirill)
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
asValidHref
(String urlString) Method to filter invalid url for XSS.
-
Method Details
-
asValidHref
Method to filter invalid url for XSS. This url can be inserted to href safely- Parameters:
urlString
- unsafe url- Returns:
- safe url
-