dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c07a09
)
REST: Use ob_clean to wipe display_errors output
author
Tim Starling
<tstarling@wikimedia.org>
Wed, 21 Aug 2019 01:45:00 +0000
(11:45 +1000)
committer
Tim Starling
<tstarling@wikimedia.org>
Wed, 21 Aug 2019 01:45:00 +0000
(11:45 +1000)
As in the Action API
Change-Id: I48c3477f0ebb58c000fa832352a1631cfda6c909
includes/Rest/EntryPoint.php
patch
|
blob
|
history
diff --git
a/includes/Rest/EntryPoint.php
b/includes/Rest/EntryPoint.php
index
a14c1a1
..
ae01ae4
100644
(file)
--- a/
includes/Rest/EntryPoint.php
+++ b/
includes/Rest/EntryPoint.php
@@
-90,6
+90,9
@@
class EntryPoint {
$cookie['options'] );
}
+ // Clear all errors that might have been displayed if display_errors=On
+ ob_clean();
+
$stream = $response->getBody();
$stream->rewind();
if ( $stream instanceof CopyableStreamInterface ) {