1
0
mirror of https://github.com/e107inc/e107.git synced 2025-09-02 10:53:29 +02:00

Issue #4356 Fixes a conflic with secureImage prefs. Added secureImage tests.

This commit is contained in:
Cameron
2021-02-02 19:18:44 -08:00
parent d1f997ee2c
commit 4b6d23dbf6
7 changed files with 220 additions and 92 deletions

View File

@@ -47,16 +47,15 @@ if(!isset($mySQLserver))
// require_once(realpath(e_BASE.$HANDLERS_DIRECTORY.DIRECTORY_SEPARATOR."secure_img_handler.php"));
require_once(e_HANDLER."secure_img_handler.php");
$sim = e107::getSecureImg();
$sim = new secure_image();
if(!isset($_GET['id']))
{
exit;
}
$code = $_GET['id'];
$code = (int) $_GET['id'];
if(!empty($_GET['clr']) && preg_match('/^[a-f0-9]{6}$/i', $_GET['clr'])) //hex color is valid
{
@@ -72,4 +71,3 @@ $sim->render($code,$color);
exit;
?>