_acs-tcl__ad_html_security_check_forbidden_tags (private)

 _acs-tcl__ad_html_security_check_forbidden_tags

Defined in packages/acs-tcl/tcl/test/html-conversion-procs.tcl

Partial Call Graph (max 5 caller/called nodes):
%3 aa_equals aa_equals (public) aa_log aa_log (public) aa_log_result aa_log_result (public) aa_true aa_true (public) ad_html_security_check ad_html_security_check (public) _acs-tcl__ad_html_security_check_forbidden_tags _acs-tcl__ad_html_security_check_forbidden_tags _acs-tcl__ad_html_security_check_forbidden_tags->aa_equals _acs-tcl__ad_html_security_check_forbidden_tags->aa_log _acs-tcl__ad_html_security_check_forbidden_tags->aa_log_result _acs-tcl__ad_html_security_check_forbidden_tags->aa_true _acs-tcl__ad_html_security_check_forbidden_tags->ad_html_security_check

Testcases:
No testcase defined.
Source code:
        
        set _aa_export {}
        set body_count 1
        foreach testcase_body {{
    set html "hello <a href='/foo'>An Link</a> world."
    aa_true "Tag a is not allowed - empty tag list" {[ad_html_security_check -allowed_tags "" $html] ne {}}

    set html "hello <a href='/foo'>An Link</a> world."
    aa_true "Tag a is not allowed - nonempty tag list" {[ad_html_security_check -allowed_tags "b h1" $html] ne {}}

    set html "hello <a href='/foo'>An Link</a> world."
    aa_equals "Tag 'a' is allowed" [ad_html_security_check -allowed_tags "a b h1" $html""
}} {
          aa_log "Running testcase body $body_count"
          set ::__aa_test_indent [info level]
          set catch_val [catch $testcase_body msg]
          if {$catch_val != 0 && $catch_val != 2} {
              aa_log_result "fail" "ad_html_security_check_forbidden_tags (body $body_count): Error during execution: $msg, stack trace: \n$::errorInfo"
          }
          incr body_count
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: