util_complete_url_p (public)

 util_complete_url_p url

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

Determine whether the provided argument is a complete URL, i.e., it contains a scheme, and a host

Parameters:
url (required)
Returns:
boolean value

Partial Call Graph (max 5 caller/called nodes):
%3 test_ad_page_contract_filters ad_page_contract_filters (test acs-tcl) util_complete_url_p util_complete_url_p test_ad_page_contract_filters->util_complete_url_p test_subsite_api subsite_api (test acs-subsite) test_subsite_api->util_complete_url_p test_util__complete_url_p util__complete_url_p (test acs-tcl) test_util__complete_url_p->util_complete_url_p ad_returnredirect ad_returnredirect (public) ad_returnredirect->util_complete_url_p util::external_url_p util::external_url_p (public) util::external_url_p->util_complete_url_p

Testcases:
subsite_api, ad_page_contract_filters, util__complete_url_p
Source code:
    try {
        set parsed [ns_parseurl -strict $url]
        return [expr {[dict exists $parsed proto] && [dict exists $parsed host]}]
    } on error {errorMsg} {
        return 0
    }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: