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)Callstack:
at en/docs/DekiScript/Reference/DekiScript_Functions_and_Variables/Web.CheckUri
at web.checkuri
System.ArgumentException: javascript is illegal inside the uri
Parameter name: uri
at MindTouch.Deki.Script.Runtime.Library.DekiScriptLibrary.WebCheckUri (System.String uri) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 |
| to check a uri for javascript: {{ web.checkuri("testing_uri:yay") }} | | testing_uri:yay |