From 4dbc740a98b5c59715fbed1b0107b31583b5a68b Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Sat, 6 May 2023 18:00:58 -0400 Subject: [PATCH] fix help bubbles when file param not specified --- CRM/Core/Page/Inline/Help.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CRM/Core/Page/Inline/Help.php b/CRM/Core/Page/Inline/Help.php index 6f299be382..19f3ffe565 100644 --- a/CRM/Core/Page/Inline/Help.php +++ b/CRM/Core/Page/Inline/Help.php @@ -22,6 +22,8 @@ class CRM_Core_Page_Inline_Help { public function run() { $args = $_REQUEST; $file = (string) ($args['file'] ?? ''); + // windows - just replace so the regex can match + $file = str_replace('\\', '/', $file); if (preg_match('@^[a-zA-Z0-9_-]+(/[a-zA-Z0-9_-]+)*$@', $file)) { $additionalTPLFile = "$file.extra.hlp"; $file .= '.hlp'; -- 2.25.1