Mercurial > pub > Impl
comparison Lib/IMPL/DOM/Transform/PostToDOM.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 | 06a34c197b05 |
children | c2aa10fbb396 |
comparison
equal
deleted
inserted
replaced
143:d9dd3500ead3 | 144:b56ebc31bf18 |
---|---|
69 | 69 |
70 my $prefix = $this->prefix; | 70 my $prefix = $this->prefix; |
71 $prefix = qr/$prefix/; | 71 $prefix = qr/$prefix/; |
72 | 72 |
73 foreach my $param (grep $_=~/$prefix/, $query->param()) { | 73 foreach my $param (grep $_=~/$prefix/, $query->param()) { |
74 my $value = $query->param($param); | 74 my $value = $query->param($param) or next; |
75 | 75 |
76 my @parts = split /\//,$param; | 76 my @parts = split /\//,$param; |
77 | 77 |
78 my $node = $data; | 78 my $node = $data; |
79 while ( my $part = shift @parts ) { | 79 while ( my $part = shift @parts ) { |