From 005d61fef0e091c23c3c57edbf6e368df25b622c Mon Sep 17 00:00:00 2001 From: Mark Evens Date: Wed, 29 Mar 2023 23:31:09 +0100 Subject: [PATCH] Update TextformatterHannaCode.module Fix erroneous removal of namespace and associated failure to add $firstline security check --- TextformatterHannaCode.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextformatterHannaCode.module b/TextformatterHannaCode.module index 2a49b2e..5598318 100644 --- a/TextformatterHannaCode.module +++ b/TextformatterHannaCode.module @@ -414,7 +414,7 @@ class TextformatterHannaCode extends Textformatter implements ConfigurableModule $code = "$openPHP\n$firstLine\n$code"; } else { // otherwise insert our $firstLine security check - $code = str_replace($openPHP, "$openPHP\n$firstLine\n", $code); + $code = str_replace($php, "$openPHP\n$firstLine\n", $code); } if(is_file($file) && file_get_contents($file) === $code) {