- Fixed ndump() source code
This commit is contained in:
1 parent
b88602a98b
commit
72f5341dff
4 files changed
+6
-10
No files matched your search
@@ -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,
|
||||
];
|
||||
|
||||
|
||||
@@ -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("<?php", "", $content);
|
||||
|
||||
|
||||
Reference in new issue
Block a user