From 6deb5405c94e1622dcf3ff1548c4d98fe6decda5 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 9 Apr 2008 20:16:15 +0200 Subject: try to increase the PCRE backtrack limit This should avoid problems with larger pages on newer PHP versions. See http://www.freelists.org/archives/dokuwiki/04-2008/msg00049.html darcs-hash:20080409181615-7ad00-de4f7a0602692b28e048d215c2e2b9657f96b81c.gz --- inc/init.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'inc/init.php') diff --git a/inc/init.php b/inc/init.php index d730ca76c..9563af296 100644 --- a/inc/init.php +++ b/inc/init.php @@ -90,6 +90,9 @@ // make sure global zlib does not interfere FS#1132 @ini_set('zlib.output_compression', 'off'); + // increase PCRE backtrack limit + @ini_set('pcre.backtrack_limit', '20971520'); + // enable gzip compression if ($conf['gzip_output'] && !defined('DOKU_DISABLE_GZIP_OUTPUT') && -- cgit v1.2.3