From 1d4a1b8fd78e0932f74d49602a2df8da417cca62 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 13 Dec 2016 15:37:17 -0500 Subject: [PATCH] BUGFIX for html encoded characters in the pdf footers. When saving the Footer text for the event management it will save it as htmlspecialchars. Encoding ampersand into html code. This needs to be undone when it is put into the pdf footer so it can be done correctly. --- index.php | 6 +++--- models/front/events/list.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.php b/index.php index b014792..fe6b5e6 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.5.8 + * Version: 1.5.9 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.5.8 + * @version 1.5.9 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.5.8'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.5.9'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/front/events/list.php b/models/front/events/list.php index c8f6677..6ec397a 100644 --- a/models/front/events/list.php +++ b/models/front/events/list.php @@ -558,7 +558,7 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction // add footers to each page if ( $this->config['settings']['footer_text'] ) { $footer = new SetaPDF_Core_Text_Block( $font, self::PDF_FONT_SIZE ); - $footer->setText($this->config['settings']['footer_text']); + $footer->setText( htmlspecialchars_decode($this->config['settings']['footer_text'])); $footer->setAlign('center'); $footer->setWidth(self::PDF_WIDTH); -- 2.17.1