mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 7969d59d8203dffa5dbe14cc5ad5793066d95350
parent a55976c9f6179f301baaafeb53425d60d98a6322
Author: markseu <mark2011@mayberg.se>
Date:   Tue, 22 Nov 2022 22:40:06 +0100

Updated core, better image detection for Otto

Diffstat:
Msystem/extensions/core.php | 6+++---
Msystem/extensions/update-current.ini | 4++--
2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/system/extensions/core.php b/system/extensions/core.php @@ -2,7 +2,7 @@ // Core extension, https://github.com/annaesvensson/yellow-core class YellowCore { - const VERSION = "0.8.102"; + const VERSION = "0.8.103"; const RELEASE = "0.8.21"; public $content; // content files public $media; // media files @@ -2673,8 +2673,8 @@ class YellowToolbox { $dataBufferSizeMax = filesize($fileName); $dataBufferSize = min($dataBufferSizeMax, 4096); if ($dataBufferSize) $dataBuffer = fread($fileHandle, $dataBufferSize); - $dataSignature = substrb($dataBuffer, 0, 4); - if (!feof($fileHandle) && ($dataSignature=="\xff\xd8\xff\xe0" || $dataSignature=="\xff\xd8\xff\xe1")) { + $dataSignature = substrb($dataBuffer, 0, 2); + if (!feof($fileHandle) && $dataSignature=="\xff\xd8") { for ($pos=2; $pos+8<$dataBufferSize; $pos+=$length) { if ($dataBuffer[$pos]!="\xff") break; $dataMarker = $dataBuffer[$pos+1]; diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini @@ -11,11 +11,11 @@ Tag: feature system/extensions/command.php: command.php, create, update Extension: Core -Version: 0.8.102 +Version: 0.8.103 Description: Core functionality of the website. DocumentationUrl: https://github.com/annaesvensson/yellow-core DownloadUrl: https://github.com/datenstrom/yellow-extensions/raw/main/downloads/core.zip -Published: 2022-11-11 11:56:13 +Published: 2022-11-22 22:27:11 Developer: Mark Seuffert, David Fehrmann Tag: feature system/extensions/core.php: core.php, create, update