From 5329b5e991dfaa2364b0a83a0bab7706835ccd81 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Fri, 26 May 2017 09:52:44 -0400 Subject: [PATCH] Bug 1985: Fix whitespace in opac/opac-review.pl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit $ git diff -w origin/master -- should have no differences Signed-off-by: Marc VĂ©ron --- opac/opac-review.pl | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/opac/opac-review.pl b/opac/opac-review.pl index f8e86ba..8fc50ec 100755 --- a/opac/opac-review.pl +++ b/opac/opac-review.pl @@ -59,19 +59,19 @@ if( !$biblio ) { } if( !@errors && defined $review ) { - if ($review !~ /\S/) { - push @errors, {empty=>1}; - } else { - $clean = C4::Scrubber->new('comment')->scrub($review); - if ($clean !~ /\S/) { - push @errors, {scrubbed_all=>1}; - } else { - if ($clean ne $review) { - push @errors, {scrubbed=>$clean}; - } - my $js_ok_review = $clean; - $js_ok_review =~ s/"/"/g; # probably redundant w/ TMPL ESCAPE=JS - $template->param(clean_review=>$js_ok_review); + if ($review !~ /\S/) { + push @errors, {empty=>1}; + } else { + $clean = C4::Scrubber->new('comment')->scrub($review); + if ($clean !~ /\S/) { + push @errors, {scrubbed_all=>1}; + } else { + if ($clean ne $review) { + push @errors, {scrubbed=>$clean}; + } + my $js_ok_review = $clean; + $js_ok_review =~ s/"/"/g; # probably redundant w/ TMPL ESCAPE=JS + $template->param(clean_review=>$js_ok_review); if ($savedreview) { $savedreview->set( { @@ -88,9 +88,9 @@ if( !@errors && defined $review ) { } )->store->reviewid; } - unless (@errors){ $template->param(WINDOW_CLOSE=>1); } - } - } + unless (@errors){ $template->param(WINDOW_CLOSE=>1); } + } + } } (@errors ) and $template->param( ERRORS=>\@errors); ($cgi_debug) and $template->param(cgi_debug=>1 ); -- 2.1.4