Was this page helpful?

Web.CheckUri

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    web.CheckUri(uri : str) : uri
    

    Check URI for possible JavaScript code.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    uri
    str
    uri to check

    Result

    The URI, if there is no javascript code.
    An error, If there is javascript code in the URI.

    Samples


    Output

    to check a uri for javascript:

    {{ web.checkuri("javascript:a/b") }}  

     

    javascript is illegal inside the uri Parameter name: uri (click for details)

    to check a uri for javascript:

    {{ web.checkuri("testing_uri:yay") }}  

     

    testing_uri:yay
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by