[ 
https://issues.apache.org/jira/browse/SLING-4236?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Cotescu updated SLING-4236:
--------------------------------
    Attachment: SLING-4236.patch

The [^SLING-4236.patch] annotates methods and parameters with the JSR-305 
{{@Nullable}} annotation and adds tests for {{null}} input values.

> The XSSAPI's encode methods should return null for null input
> -------------------------------------------------------------
>
>                 Key: SLING-4236
>                 URL: https://issues.apache.org/jira/browse/SLING-4236
>             Project: Sling
>          Issue Type: Bug
>          Components: Extensions
>    Affects Versions: XSS Protection API 1.0.0
>            Reporter: Radu Cotescu
>         Attachments: SLING-4236.patch
>
>
> The XSSAPI's encode methods should return {{null}} for {{null}} input. 
> Currently it seems that the default implementation based on the 
> {{owasp-java-encoder}} transforms {{null}} into {{"null"}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to