From 15a4ff3c9962cefdec489924c2aec1bcb526e6ac Mon Sep 17 00:00:00 2001 From: ralf Date: Wed, 8 Mar 2023 14:26:47 +0100 Subject: [PATCH] do NOT show absolute path of error, but the one relative to our root --- api/src/loader/exception.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/loader/exception.php b/api/src/loader/exception.php index 1621e1c62b..ce97383361 100755 --- a/api/src/loader/exception.php +++ b/api/src/loader/exception.php @@ -127,7 +127,7 @@ function egw_exception_handler($e) $message = '

'.Api\Html::htmlspecialchars($headline)."

\n". '
'.Api\Html::htmlspecialchars($e->getMessage().' ('.$e->getCode().')')."\n\n";
 
-		echo $e->getFile().' ('.$e->getLine().")\n";
+		echo str_replace(EGW_SERVER_ROOT.'/', '', $e->getFile()).' ('.$e->getLine().")\n";
 
 		// only show trace (incl. function arguments) if explicitly enabled, eg. on a development system
 		if ($GLOBALS['egw_info']['server']['exception_show_trace'])