Disable trimwhitespace
Disable trimwhitespace

trimwhitespace uses pcre to trim whitespace, but on large pages
it hits the pcre.backtrack_limit and crashes out, leaving you with
a blank page

--- a/include/controller/ControllerBase.class.php
+++ b/include/controller/ControllerBase.class.php
@@ -375,7 +375,7 @@
 		}
 
 		if (!$this->preserveWhitespace) {
-			$this->tpl->loadFilter('output', 'trimwhitespace');
+			//$this->tpl->loadFilter('output', 'trimwhitespace');
 		}
 
 		if (GitPHP_Log::GetInstance()->GetBenchmark())

comments