Skip to content

Commit

Permalink
Badge: Fix WAC handling for sub paths
Browse files Browse the repository at this point in the history
See: https://mantis.ilias.de/view.php?id=40528
(cherry picked from commit e8d1961)
  • Loading branch information
mjansenDatabay committed Feb 19, 2024
1 parent 34a00b8 commit a8d90b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Badge/classes/class.ilBadgeWAC.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function canBeDelivered(ilWACPath $ilWACPath): bool
return false;
}

if (!preg_match('@ilBadge\/badge(tmpl)?_(\d+)\/@ui', $ilWACPath->getPath())) {
if (!preg_match('@ilBadge\/(\d+\/)*?badge(tmpl)?_(\d+)\/@ui', $ilWACPath->getPath())) {
return false;
}

Expand Down

0 comments on commit a8d90b0

Please sign in to comment.