commit dc7d8e402b2e9815f389e0222c8d34a83ee89872
parent 9ed2d207232f453d8169a9513643b9b55a3be904
Author: markseu <mark2011@mayberg.se>
Date: Fri, 12 May 2023 14:37:42 +0200
Refactored code
Diffstat:
2 files changed, 8 insertions(+), 8 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.111";
+ const VERSION = "0.8.112";
const RELEASE = "0.8.22";
public $content; // content files
public $media; // media files
@@ -1730,7 +1730,7 @@ class YellowLookup {
break;
}
}
- if($pos==0) $encode=true;
+ if($pos==0) $encode = true;
}
if ($encode) {
while (true) {
@@ -2862,16 +2862,16 @@ class YellowToolbox {
}
if ($statusCode==0) {
$text = $this->yellow->lookup->normaliseHeaders($headers, "mime");
- $to = $subject = $remaining = $blockKey = "";
+ $to = $subject = $remaining = $key = "";
foreach (preg_split("/\r\n/", $text) as $line) {
if (preg_match("/^(.*?):\s*(.*?)$/", $line, $matches) && !is_string_empty($matches[1])) {
- $blockKey = $matches[1];
+ $key = $matches[1];
$fragment = $matches[2];
} else {
$fragment = $line;
}
- if ($blockKey=="To") { $to .= $fragment; continue; }
- if ($blockKey=="Subject") { $subject .= $fragment; continue; }
+ if ($key=="To") { $to .= $fragment; continue; }
+ if ($key=="Subject") { $subject .= $fragment; continue; }
$remaining .= $line."\r\n";
}
$statusCode = mail($to, $subject, $message, $remaining) ? 200 : 500;
diff --git a/system/extensions/update-current.ini b/system/extensions/update-current.ini
@@ -1,11 +1,11 @@
# Datenstrom Yellow update settings
Extension: Core
-Version: 0.8.111
+Version: 0.8.112
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: 2023-05-11 20:47:06
+Published: 2023-05-12 14:32:32
Developer: Mark Seuffert, David Fehrmann
Tag: feature
system/extensions/core.php: core.php, create, update