Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1167679
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
Tue, Sep 23, 11:19 PM
Size
709 B
Mime Type
text/x-diff
Expires
Wed, Sep 24, 11:19 PM (13 h, 52 m)
Engine
blob
Format
Raw Data
Handle
756378
Attached To
D519: INP-1908 - Discard template parser opened output buffers before doing a redirect
D519.diff
View Options
Index: branches/5.2.x/core/kernel/application.php
===================================================================
--- branches/5.2.x/core/kernel/application.php
+++ branches/5.2.x/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