Security

last person joined: yesterday 

Forum to discuss Enterprise security using HPE Aruba Networking NAC solutions (ClearPass), Introspect, VIA, 360 Security Exchange, Extensions, and Policy Enforcement Firewall (PEF).
Expand all | Collapse all

Escape Smarty interface quotes.

This thread has been viewed 1 times
  • 1.  Escape Smarty interface quotes.

    Posted Dec 06, 2012 08:26 PM

    Hi,

     

    I am running into some trouble that I think may be caused by some double quotes being added to an if statement within the Guest Self Registration portal. The issue I believe is that the addition of these double quotes is breaking some java script futher down the page.

     

    The If statment is the standard statusCodes check for Cisco contollers:

    {if $statusCode == 1}
     {nwa_icontext type=info}
      **INSERT ERROR MESSAGE HERE**
     {/nwa_icontext}
    {/if}

     Which is interpreted on the html page as:

    <div class="nwaError">
    "
     **INSERT ERROR MESSAGE HERE **
    "
    </div>

     How do I remove those double quotes?



  • 2.  RE: Escape Smarty interface quotes.

    Posted Dec 06, 2012 08:54 PM

    hmmm... I have done some more digging and it appears that the addition of the double quotes is just a Chrome Inspect Element thing....

     

    however when ?statusCode=5 is appended to the URL this issue still occurs.

     

    Any ideas?



  • 3.  RE: Escape Smarty interface quotes.

    Posted Dec 07, 2012 01:36 AM

    What is the issue you are seeing?