nsmcp::codeUpstreamRef (private)

 nsmcp::codeUpstreamRef ref

Defined in /usr/local/ns/tcl/nsmcp/examples/nsmcp-openacs-api-docs.tcl

Validate and normalize a configured upstream source reference. @return Normalized reference.

Parameters:
ref (required)

Partial Call Graph (max 5 caller/called nodes):

Testcases:
No testcase defined.
Source code:
    if {[string length $ref]<1 || [string length $ref]>200 || ![regexp {^[A-Za-z0-9][A-Za-z0-9_./-]*$} $ref] || [string first .. $ref]>=0} {
        error "invalid-upstream-ref"
    }
    return $ref
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: