Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1068654
D519.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jul 18, 6:47 PM
Size
664 B
Mime Type
text/x-diff
Expires
Sat, Jul 19, 6:47 PM (12 h, 20 m)
Engine
blob
Format
Raw Data
Handle
691672
Attached To
D519: INP-1908 - Discard template parser opened output buffers before doing a redirect
D519.diff
View Options
Index: core/kernel/application.php
===================================================================
--- core/kernel/application.php
+++ core/kernel/application.php
@@ -1946,6 +1946,11 @@
$location = $this->HREF($t, $prefix, $params, $index_file);
+ // Discard any half-parsed content, when encountered tag, that triggered a redirect.
+ if ( is_object($this->Parser) ) {
+ $this->Parser->Clear();
+ }
+
if ( $this->isDebugMode() && (kUtil::constOn('DBG_REDIRECT') || (kUtil::constOn('DBG_RAISE_ON_WARNINGS') && $this->Debugger->WarningCount)) ) {
$this->Debugger->appendTrace();
echo '<strong>Debug output above !!!</strong><br/>' . "\n";
Event Timeline
Log In to Comment