- Fixed ndump() source code

This commit is contained in:
Dave Mc Nicoll committed 2026-05-22 18:49:22 +00:00
1 parent b88602a98b
commit 72f5341dff
4 files changed
+6 -10

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ class ExceptionHandler {
'HTTP_HOST' => $serverData['HTTP_HOST'] ?? "",
'REQUEST_URI' => $serverData['REQUEST_URI'] ?? "",
'HTTP_USER_AGENT' => $serverData['HTTP_USER_AGENT'] ?? "# UNKNOWN #",
'REMOTE_ADDR' => $serverData['REMOTE_ADDR'] ?? null,
'REMOTE_ADDR' => $server['HTTP_X_FORWARDED_FOR'] ?? $serverData['REMOTE_ADDR'] ?? null,
'REQUEST_METHOD' => $serverData['HTTP_X_HTTP_METHOD'] ?? $serverData['REQUEST_METHOD'] ?? null,
];
+3 -4
View File
@@ -41,10 +41,9 @@ class SourceCodeFormatter {
catch(\Throwable $e) {
$content = $fileSpl->current();
}
# Get code between <code></code> tags
$content = substr($content, strpos($content, "<code>") + 6, strrpos($content, "</code>") - 6);
$content = strip_tags($content, '<span>');
# Removing the added <?php tag
$content = str_replace("&lt;?php", "", $content);