Skip Menu |

This queue is for tickets about the CAM-PDF CPAN distribution.

Report information
The Basics
Id: 128120
Status: new
Priority: 0/
Queue: CAM-PDF

People
Owner: Nobody in particular
Requestors: carl [...] leathersfuels.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Invalid quote character checking in CAM::PDF::PageText
Date: Thu, 27 Dec 2018 08:15:34 -0800
To: bug-CAM-PDF [...] rt.cpan.org
From: Carl Carstenson <carl [...] leathersfuels.net>
When $block->{name} is a quote character (either single or double), PageText->render() skips the text. This is due to improper use of Perl's q{} function. The module escapes these characters with a backslash, causing a two-byte quoted string. The module works when I remove the backslashes on lines 93 and 94. 93,94c93,94 <                     : $block->{name} eq q{\'}  ? _Tquote( $str, \@args ) <                     : $block->{name} eq q{\"}  ? _Tquote( $str, \@args ) --- Show quoted text
>                     : $block->{name} eq q{'}   ? _Tquote( $str,
\@args ) Show quoted text
>                     : $block->{name} eq q{"}   ? _Tquote( $str,
\@args ) Distribution:    CAM-PDF-1.60 Perl version:    v5.16.3 O/S:                 Ubuntu 18.04.1 LTS Thanks. Carl Carstenson