| 1 |
Description: Silence test warnings with newer CGI.pm versions |
| 2 |
This fixes warnings like |
| 3 |
CGI::param called in list context from package ReplaceQueryObject line 14, this can lead to vulnerabilities. See the warning in "Fetching the value or values of a single named parameter" at /usr/share/perl5/CGI.pm line 436, <DATA> line 16. |
| 4 |
Origin: vendor |
| 5 |
Bug: https://rt.cpan.org/Public/Bug/Display.html?id=104176 |
| 6 |
Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=104176 |
| 7 |
Bug-Debian: https://bugs.debian.org/783405 |
| 8 |
Author: Niko Tyni <[email protected]> |
| 9 |
Reviewed-by: gregor herrmann <[email protected]> |
| 10 |
Last-Update: 2016-04-29 |
| 11 |
|
| 12 |
--- libcgi-application-server-perl.orig/t/lib/ReplaceQueryObject.pm |
| 13 |
+++ libcgi-application-server-perl/t/lib/ReplaceQueryObject.pm |
| 14 |
@@ -12,7 +12,7 @@ |
| 15 |
my ($self) = @_; |
| 16 |
my $q = $self->query; |
| 17 |
return join "\n", |
| 18 |
- $q->start_html($q->param('text')) . |
| 19 |
+ $q->start_html(scalar $q->param('text')) . |
| 20 |
$q->end_html |
| 21 |
; |
| 22 |
} |