git.shiar.nl
/
minimedit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6413bd8
)
page: convert error messages to html strings
author
Mischa POSLAWSKY
<perl@shiar.org>
Sat, 30 Nov 2019 23:00:15 +0000
(
00:00
+0100)
committer
Mischa POSLAWSKY
<perl@shiar.org>
Thu, 5 Dec 2019 18:02:07 +0000
(19:02 +0100)
Exception objects need to be converted to strings for usage as placeholders,
and while at it, xml characters should be escaped for proper display.
page.php
patch
|
blob
|
history
diff --git
a/page.php
b/page.php
index d2532a5733eb64e9e6b83396bb4095e0606b634f..fb0c4ddcba96d7edd2b3cd28bbbd3f1ea75017fc 100644
(file)
--- a/
page.php
+++ b/
page.php
@@
-91,7
+91,7
@@
function fail($error)
include_once 'page.inc.php';
ob_start();
require '500.inc.html';
- print getoutput(['debug' =>
$error
]);
+ print getoutput(['debug' =>
htmlspecialchars($error)
]);
}
set_exception_handler('fail');