Index: openacs-4/packages/acs-tcl/acs-tcl.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/acs-tcl.info,v
diff -u -N -r1.70.2.13 -r1.70.2.14
--- openacs-4/packages/acs-tcl/acs-tcl.info 15 May 2016 18:22:49 -0000 1.70.2.13
+++ openacs-4/packages/acs-tcl/acs-tcl.info 19 May 2016 08:39:02 -0000 1.70.2.14
@@ -9,7 +9,7 @@
f
t
-
+
OpenACS
The Kernel Tcl API library.
2016-05-15
@@ -18,7 +18,7 @@
GPL version 2
3
-
+
Index: openacs-4/packages/acs-tcl/catalog/acs-tcl.en_US.ISO-8859-1.xml
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/acs-tcl/catalog/acs-tcl.en_US.ISO-8859-1.xml,v
diff -u -N -r1.25 -r1.25.2.1
--- openacs-4/packages/acs-tcl/catalog/acs-tcl.en_US.ISO-8859-1.xml 24 Jun 2015 07:10:29 -0000 1.25
+++ openacs-4/packages/acs-tcl/catalog/acs-tcl.en_US.ISO-8859-1.xml 19 May 2016 08:39:02 -0000 1.25.2.1
@@ -43,6 +43,7 @@
%name% does not appear to be a valid US phone number.
%name% does not appear to be a boolean value.
%name% is not a natural number, that is an integer greater than or equal to 0.
+ %name% is not valid
%name% is not a valid SQL identifier
%name% is not an integer
%name% contains non-word characters
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