You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Dan Klco (JIRA)" <ji...@apache.org> on 2018/05/02 21:16:00 UTC

[jira] [Created] (SLING-7641) Use Default if Value is Blank on sling:encode Tag

Dan Klco created SLING-7641:
-------------------------------

             Summary: Use Default if Value is Blank on sling:encode Tag
                 Key: SLING-7641
                 URL: https://issues.apache.org/jira/browse/SLING-7641
             Project: Sling
          Issue Type: Bug
          Components: Scripting
    Affects Versions: Scripting JSP Taglib 2.2.6
            Reporter: Dan Klco
            Assignee: Dan Klco
             Fix For: Scripting JSP Taglib 2.2.8


According to the description in the TLD, the blank value is:

"The default value to be used if the value is either null or an empty string." 

However, the Encode Tag only uses a null check to decide to use the default value. This should instead check if the string is null or empty.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)