Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046926
D519.id.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
Sun, Jun 29, 10:47 AM
Size
664 B
Mime Type
text/x-diff
Expires
Mon, Jun 30, 10:47 AM (1 h, 45 m)
Engine
blob
Format
Raw Data
Handle
676876
Attached To
D519: INP-1908 - Discard template parser opened output buffers before doing a redirect
D519.id.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