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 test_ad_page_contract_filters ad_page_contract_filters (test acs-tcl) ad_page_contract_filter_proc_path ad_page_contract_filter_proc_path test_ad_page_contract_filters->ad_page_contract_filter_proc_path _ _ (public) ad_page_contract_filter_proc_path->_ ad_complain ad_complain (public) ad_page_contract_filter_proc_path->ad_complain

Testcases:
ad_page_contract_filters
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: