Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F847707
D519.id1336.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
Sat, Apr 19, 1:14 PM
Size
664 B
Mime Type
text/x-diff
Expires
Sun, Apr 20, 1:14 PM (2 h, 12 m)
Engine
blob
Format
Raw Data
Handle
602369
Attached To
D519: INP-1908 - Discard template parser opened output buffers before doing a redirect
D519.id1336.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