diff Lib/IMPL/Web/Application/ControllerUnit.pm @ 144:b56ebc31bf18

Empty nodes no more created while transforming a post request to the DOM document minor speed improvements to the object CTOR caching Added support for a secure processing (and 'laundering' ) a CGI parameters Many minor fixes
author wizard
date Tue, 13 Jul 2010 02:05:38 +0400
parents 4c9849f0f879
children 60fd224f3e3c
line wrap: on
line diff
--- a/Lib/IMPL/Web/Application/ControllerUnit.pm	Thu Jul 08 23:46:49 2010 +0400
+++ b/Lib/IMPL/Web/Application/ControllerUnit.pm	Tue Jul 13 02:05:38 2010 +0400
@@ -20,6 +20,7 @@
 	public property action => prop_get | owner_set;
 	public property application => prop_get | owner_set;
 	public property query => prop_get | owner_set;
+	public property response => prop_get | owner_set;
 	public property formData => prop_get | owner_set;
 	public property formSchema => prop_get | owner_set;
 	public property formErrors => prop_get | owner_set;
@@ -35,6 +36,7 @@
 	$this->action($action);
 	$this->application($action->application);
 	$this->query($action->query);
+	$this->response($action->response);
 	
 	$this->$_($args->{$_}) foreach qw(formData formSchema formErrors);
 }
@@ -111,7 +113,7 @@
 	if ( $param =~ /^::(\w+)$/ and $publicProps{$1}) {
 		return $this->$1();
 	} else {
-		return $this->query->param($param);
+		return scalar($this->query->param($param));
 	}
 }