aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/JsonApi/Schemas/Forum/Posting.php
diff options
context:
space:
mode:
authorMurtaza Sultani <sultani@data-quest.de>2025-10-02 13:31:42 +0200
committerMurtaza Sultani <sultani@data-quest.de>2025-10-02 13:31:42 +0200
commit5c3aaa4e02af9dd88e9f41e448c53b5f11699528 (patch)
tree3a273179ba217246f76be72e959aca392f43c434 /lib/classes/JsonApi/Schemas/Forum/Posting.php
parent643c81b7a58ea4d15365fc699040188e6fc3ab2c (diff)
Apply 1 suggestion(s) to 1 file(s)issue-5765
Co-authored-by: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Diffstat (limited to 'lib/classes/JsonApi/Schemas/Forum/Posting.php')
-rw-r--r--lib/classes/JsonApi/Schemas/Forum/Posting.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/JsonApi/Schemas/Forum/Posting.php b/lib/classes/JsonApi/Schemas/Forum/Posting.php
index 1622e2b..a154dab 100644
--- a/lib/classes/JsonApi/Schemas/Forum/Posting.php
+++ b/lib/classes/JsonApi/Schemas/Forum/Posting.php
@@ -159,8 +159,8 @@ class Posting extends SchemaProvider
{
$attributes = [];
- if (preg_match('/^(.*)(<admin_msg.*?)$/s', $content, $matches)) {
- $adminTag = $matches[2];
+ if (preg_match('/(<admin_msg.*?)$/s', $content, $matches)) {
+ $adminTag = $matches[1];
// Extract attributes
if (preg_match_all('/(\w+)="([^"]*)"/', $adminTag, $attrMatches, PREG_SET_ORDER)) {