From e5d586432f1faf81e17acc9dae8b0749431eab09 Mon Sep 17 00:00:00 2001 From: Rom1-B <8530352+Rom1-B@users.noreply.github.com> Date: Tue, 28 Jul 2026 09:54:43 +0200 Subject: [PATCH] Fix: restore image rendering in Problem task PDF exports --- CHANGELOG.md | 6 ++++++ inc/problemtask.class.php | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index aad660f..30c6fbe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [Unreleased] + +### Fixed + +- Fix image rendering in Problem task PDF exports + ## [4.0.3] - 2026-06-30 ### Fixed diff --git a/inc/problemtask.class.php b/inc/problemtask.class.php index aa99ff4..d3a5d60 100755 --- a/inc/problemtask.class.php +++ b/inc/problemtask.class.php @@ -128,7 +128,7 @@ public static function pdfForProblem(PluginPdfSimplePDF $pdf, Problem $job) ); $pdf->displayText( '' . sprintf(__('%1$s: %2$s') . '', __('Description'), ''), - Toolbox::stripTags($data['content']), + $data['content'], 1, ); }