From 9cbb477cf8f392ad55e77ad267ab8eb52830635f Mon Sep 17 00:00:00 2001 From: Alexandre Rosenfeld Date: Fri, 18 Feb 2011 16:50:08 +0000 Subject: [PATCH] Fix when ProcessMaker is installed in a folder with a dot. --- workflow/public_html/sysGeneric.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workflow/public_html/sysGeneric.php b/workflow/public_html/sysGeneric.php index 90a66e9a4..5add5988d 100644 --- a/workflow/public_html/sysGeneric.php +++ b/workflow/public_html/sysGeneric.php @@ -199,7 +199,7 @@ $startingTime = array_sum(explode(' ',microtime())); break; default : $realPath = explode('?', $realPath); - $realPath[0] .= strpos($realPath[0], '.') === false ? '.php' : ''; + $realPath[0] .= strpos(basename($realPath[0]), '.') === false ? '.php' : ''; G::streamFile ( $realPath[0] ); die; }