Skip to content

Commit

Permalink
prepare to tag v0.7.19
Browse files Browse the repository at this point in the history
  • Loading branch information
mosbth committed Mar 30, 2017
1 parent 61aa528 commit f960451
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 38 deletions.
3 changes: 2 additions & 1 deletion REVISION.md
Expand Up @@ -5,9 +5,10 @@ Revision history
[![Build Status](https://scrutinizer-ci.com/g/mosbth/cimage/badges/build.png?b=master)](https://scrutinizer-ci.com/g/mosbth/cimage/build-status/master)


v0.7.19* (2016-08-31)
v0.7.19 (2017-03-31)
-------------------------------------

* Move exception handler from functions.php to img.php.
* Correct XSS injection in `check_system.php`.
* Composer suggests ext-imagick and ext-curl.

Expand Down
2 changes: 1 addition & 1 deletion defines.php
@@ -1,6 +1,6 @@
<?php
// Version of cimage and img.php
define("CIMAGE_VERSION", "v0.7.19* (2016-08-11)");
define("CIMAGE_VERSION", "v0.7.19 (2017-03-31)");

// For CRemoteImage
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
Expand Down
34 changes: 17 additions & 17 deletions webroot/imgd.php
Expand Up @@ -38,7 +38,7 @@


// Version of cimage and img.php
define("CIMAGE_VERSION", "v0.7.18 (2016-08-09)");
define("CIMAGE_VERSION", "v0.7.19 (2017-03-31)");

// For CRemoteImage
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
Expand Down Expand Up @@ -118,22 +118,6 @@ function errorPage($msg, $type = 500)



/**
* Custom exception handler.
*/
set_exception_handler(function ($exception) {
errorPage(
"<p><b>img.php: Uncaught exception:</b> <p>"
. $exception->getMessage()
. "</p><pre>"
. $exception->getTraceAsString()
. "</pre>",
500
);
});



/**
* Get input from query string or return default value if not set.
*
Expand Down Expand Up @@ -4418,6 +4402,22 @@ public function output()
*
*/

/**
* Custom exception handler.
*/
set_exception_handler(function ($exception) {
errorPage(
"<p><b>img.php: Uncaught exception:</b> <p>"
. $exception->getMessage()
. "</p><pre>"
. $exception->getTraceAsString()
. "</pre>",
500
);
});



/**
* Get configuration options from file, if the file exists, else use $config
* if its defined or create an empty $config.
Expand Down
34 changes: 17 additions & 17 deletions webroot/imgp.php
Expand Up @@ -38,7 +38,7 @@


// Version of cimage and img.php
define("CIMAGE_VERSION", "v0.7.18 (2016-08-09)");
define("CIMAGE_VERSION", "v0.7.19 (2017-03-31)");

// For CRemoteImage
define("CIMAGE_USER_AGENT", "CImage/" . CIMAGE_VERSION);
Expand Down Expand Up @@ -118,22 +118,6 @@ function errorPage($msg, $type = 500)



/**
* Custom exception handler.
*/
set_exception_handler(function ($exception) {
errorPage(
"<p><b>img.php: Uncaught exception:</b> <p>"
. $exception->getMessage()
. "</p><pre>"
. $exception->getTraceAsString()
. "</pre>",
500
);
});



/**
* Get input from query string or return default value if not set.
*
Expand Down Expand Up @@ -4418,6 +4402,22 @@ public function output()
*
*/

/**
* Custom exception handler.
*/
set_exception_handler(function ($exception) {
errorPage(
"<p><b>img.php: Uncaught exception:</b> <p>"
. $exception->getMessage()
. "</p><pre>"
. $exception->getTraceAsString()
. "</pre>",
500
);
});



/**
* Get configuration options from file, if the file exists, else use $config
* if its defined or create an empty $config.
Expand Down

0 comments on commit f960451

Please sign in to comment.