comparison Lib/IMPL/Web/Application/Action.pm @ 245:7c517134c42f

Added Unsupported media type Web exception corrected resourceLocation setting in the resource Implemented localizable resources for text messages fixed TT view scopings, INIT block in controls now sets globals correctly.
author sergey
date Mon, 29 Oct 2012 03:15:22 +0400
parents a02b110da931
children 32aceba4ee6d
comparison
equal deleted inserted replaced
244:a02b110da931 245:7c517134c42f
30 } 30 }
31 31
32 sub param { 32 sub param {
33 my ($this,$name,$rx) = @_; 33 my ($this,$name,$rx) = @_;
34 34
35 $this->_launder(scalar( $this->query->param($name) ), $rx ); 35 my $value;
36
37 if (
38 $this->requestMethod eq 'GET'
39 or
40 $this->query->content_type eq 'multipart/form-data'
41 or
42 $this->query->content_type eq 'application/x-www-form-urlencoded'
43 ) {
44 $value = scalar( $this->query->param($name) );
45 } else {
46 $value = scalar( $this->query->url_param($name) );
47 }
48
49 $this->_launder($value, $rx );
36 } 50 }
37 51
38 sub requestMethod { 52 sub requestMethod {
39 my ($this) = @_; 53 my ($this) = @_;
40 return $this->query->request_method; 54 return $this->query->request_method;