ad_page_contract_filter_proc_path (public)

 ad_page_contract_filter_proc_path name value_varname

Defined in packages/acs-tcl/tcl/tcl-documentation-procs.tcl

Checks whether the value is a Tcl word, or contains a few rather safe other characters ("-", "/", ".") used in (file-system) paths

Parameters:
name
value_varname
Author:
Gustaf Neumann
Created:
24 June 2015

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) ad_complain ad_complain (public) ad_page_contract_filter_proc_path ad_page_contract_filter_proc_path ad_page_contract_filter_proc_path->_ ad_page_contract_filter_proc_path->ad_complain

Testcases:
No testcase defined.
Source code:
upvar $value_varname value


    if {[regexp {^[\w/.-]+$} $value]} {
        return 1
    }
    ad_complain [_ acs-tcl.lt_name_contains_invalid]
    return 0
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: