From 85b34d034728d00ec6c2942496e7cd39eadf1e45 Mon Sep 17 00:00:00 2001
From: James Heinrich <info@silisoftware.com>
Date: Wed, 10 Aug 2016 12:43:58 -0400
Subject: [PATCH] demo.showpic

http://support.silisoftware.com/phpBB3/viewtopic.php?t=1021
---
 demo/phpThumb.demo.showpic.php | 6 +++++-
 phpthumb.class.php             | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/demo/phpThumb.demo.showpic.php b/demo/phpThumb.demo.showpic.php
index c4899c5..60c2dfd 100644
--- a/demo/phpThumb.demo.showpic.php
+++ b/demo/phpThumb.demo.showpic.php
@@ -92,7 +92,11 @@ function CrossBrowserResizeInnerWindowTo(newWidth, newHeight) {
 			@$additionalparameters[$key][] = preg_replace('#[^A-Za-z0-9\\. _:/]#', '', $value2);
 		}
 	} else {
-		$additionalparameters[$key] = preg_replace('#[^A-Za-z0-9\\. _:/]#', '', $value);
+		if ($key == 'src') {
+			// allow as passed
+		} else {
+			$additionalparameters[$key] = preg_replace('#[^A-Za-z0-9\\. _:/]#', '', $value);
+		}
 	}
 }
 $imagesrc = phpThumbURL($additionalparameters, $phpThumbLocation);
diff --git a/phpthumb.class.php b/phpthumb.class.php
index 48a6c26..5dd6b8f 100644
--- a/phpthumb.class.php
+++ b/phpthumb.class.php
@@ -215,7 +215,7 @@ class phpthumb {
 	var $issafemode       = null;
 	var $php_memory_limit = null;
 
-	var $phpthumb_version = '1.7.14-201608100902';
+	var $phpthumb_version = '1.7.14-201608101243';
 
 	//////////////////////////////////////////////////////////////////////