From 471b14c8665af781fdd1e224b66d99bd64347f0c Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Thu, 13 Mar 2025 12:02:06 +0800 Subject: [PATCH] MDL-81660 core: Applied PHP CSS Parser patches One of the patches has been merged, but the other is still outstanding. --- lib/php-css-parser/readme_moodle.txt | 2 +- lib/php-css-parser/src/Rule/Rule.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/php-css-parser/readme_moodle.txt b/lib/php-css-parser/readme_moodle.txt index d8cd1bcf72e..fb15015b30d 100644 --- a/lib/php-css-parser/readme_moodle.txt +++ b/lib/php-css-parser/readme_moodle.txt @@ -14,4 +14,4 @@ cp -rf $tempdir/readme* lib/php-css-parser ``` Apply the following patches: -- None at this time +- https://github.com/sabberworm/PHP-CSS-Parser/pull/173 diff --git a/lib/php-css-parser/src/Rule/Rule.php b/lib/php-css-parser/src/Rule/Rule.php index c1bad65ebe3..3f038d9daab 100644 --- a/lib/php-css-parser/src/Rule/Rule.php +++ b/lib/php-css-parser/src/Rule/Rule.php @@ -108,7 +108,9 @@ class Rule implements Renderable, Commentable $oParserState->consume(';'); } - $oParserState->consumeWhiteSpace(); + // Begin Moodle Hack. + // $oParserState->consumeWhiteSpace(); + // End Moodle Hack. return $oRule; }