Index: openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl,v
diff -u -N -r1.36.2.21 -r1.36.2.22
--- openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl 18 May 2016 07:08:05 -0000 1.36.2.21
+++ openacs-4/packages/acs-tcl/tcl/tcl-documentation-procs.tcl 19 May 2016 08:39:02 -0000 1.36.2.22
@@ -407,6 +407,10 @@
Pluggable filter, installed by default, that makes sure hat argument contains only Tcl word
characters (as defined by \w in Tcl regular expressions, i.e. characers, digits and underscore).
+ return_url
+ Pluggable filter, installed by default, that makes sure hat argument contains a valid
+ (non-external) return url, which can be used in ad_returnredirect without throwing an error.
+
more filters...
@@ -2137,9 +2141,24 @@
return 0
}
+ad_page_contract_filter return_url { name value } {
+ Checks whether the value is a an acceptable
+ (non-external) return url, which can be used
+ in ad_returnredirect without throwing an error.
+ @author Gustaf Neumann
+ @creation-date 19 Mai 2016
+} {
+ if { $value eq "" || [util::external_url_p $value]} {
+ ad_complain [_ acs-tcl.lt_name_is_not_valid]
+ return 0
+ }
+ return 1
+}
+
+
####################
#
# Standard filter rules