Skip to content

Commit

Permalink
demo.showpic
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Aug 10, 2016
1 parent 3578bda commit 85b34d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion demo/phpThumb.demo.showpic.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion phpthumb.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';

//////////////////////////////////////////////////////////////////////

Expand Down

0 comments on commit 85b34d0

Please sign in to comment.