Version 4.2.0

This commit is contained in:
Neo committed 2025-12-19 05:44:59 -08:00
1 parent 0dc2aee5ed
commit 96997ddd8e
2074 files changed
+125454 -55780

No files matched your search

@@ -1,10 +1,10 @@
<?php
/**
* @brief Image Proxy
* @author <a href='http://www.invisionpower.com'>Invision Power Services, Inc.</a>
* @copyright (c) 2001 - 2016 Invision Power Services, Inc.
* @license http://www.invisionpower.com/legal/standards/
* @package IPS Community Suite
* @author <a href='https://www.invisioncommunity.com'>Invision Power Services, Inc.</a>
* @copyright (c) Invision Power Services, Inc.
* @license https://www.invisioncommunity.com/legal/standards/
* @package Invision Community
* @since 29 Jun 2015
* @version SVN_VERSION_NUMBER
*/
@@ -66,6 +66,7 @@ catch ( \UnderflowException $e )
$output = \IPS\Http\Url::external( mb_substr( $url, 0, 2 ) === '//' ? "http:{$url}" : $url )->request()->get();
/* Check it's a valid image */
$image = \IPS\Image::create( (string) $output );
$imageExtension = $image->type;
unset( $image );
}
catch ( \Exception $e )
@@ -85,9 +86,9 @@ catch ( \UnderflowException $e )
}
else
{
$filename = md5( uniqid() ) . '.' . $image->type;
$filename = md5( uniqid() ) . '.' . $imageExtension;
}
/* Cache */
$file = \IPS\File::create( 'core_Imageproxycache', $filename, (string) $output, 'imageproxy' );
\IPS\Db::i()->replace( 'core_image_proxy', array(