From 6e27a21ea9a09b564465eb3589d962340b2a165d Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 4 Nov 2024 23:16:30 +0100 Subject: [PATCH] SCENARIO TEST : fix bug in export logging --- html/export.php | 2 +- html/extension.raw.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/html/export.php b/html/export.php index 1e70f720b..b5faeb100 100644 --- a/html/export.php +++ b/html/export.php @@ -69,7 +69,7 @@ if ( LOGINPUT) fwrite($file_loginput,"\n"); fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);'); fwrite($file_loginput,"\n"); - fwrite($file_loginput,' require_once NOALYSS_INCLUDE."/export/$prfile";'); + fwrite($file_loginput,' require_once NOALYSS_INCLUDE."/export/'.$prfile.'";'); fwrite($file_loginput,"\n"); fclose($file_loginput); } diff --git a/html/extension.raw.php b/html/extension.raw.php index 784507e33..462d0661c 100644 --- a/html/extension.raw.php +++ b/html/extension.raw.php @@ -71,10 +71,13 @@ if ( $ext->search($http->request("plugin_code")) != -1 ) fwrite($file_loginput,"\n"); fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);'); fwrite($file_loginput,"\n"); + $string='require_once "'.NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php'.'";'; + fwrite($file_loginput,sprintf("%s",$string)); + fwrite($file_loginput,"\n"); fclose($file_loginput); } /* call the ajax script */ - require_once(NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php'); + require_once NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php'; } else {