From f5683b439edba333f1c986ad8e658f801e405590 Mon Sep 17 00:00:00 2001 From: user Date: Tue, 20 Nov 2012 12:43:20 -0400 Subject: [PATCH] Adding fix for print images with parameters make set a wrong Workspace. --- workflow/public_html/bootstrap.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workflow/public_html/bootstrap.php b/workflow/public_html/bootstrap.php index 78a90a6b2..09c4d94d6 100755 --- a/workflow/public_html/bootstrap.php +++ b/workflow/public_html/bootstrap.php @@ -58,7 +58,8 @@ define( 'PATH_HTML', PATH_HOME . 'public_html' . PATH_SEP ); //this is the first path, if the file exists... $request = substr($_SERVER['REQUEST_URI'],1,strlen($_SERVER['REQUEST_URI'])); -$requestFile = PATH_HTML . $request; +$fileX = explode("?",$request); +$requestFile = PATH_HTML . $fileX[0]; if (file_exists($requestFile)) { if (!is_file($requestFile)) { header( "location: /errors/error404.php?url=" . urlencode( $_SERVER['REQUEST_URI'] ) );