// error log only in dev mode for pcre backtrack limit #PSCFV-9012

This commit is contained in:
Damien Metzger
2013-08-20 16:40:17 +02:00
parent 57d8d9c232
commit 750f374036
+2 -1
View File
@@ -111,7 +111,8 @@ class MediaCore
// In this case, we don't compress the content
if (preg_last_error() == PREG_BACKTRACK_LIMIT_ERROR)
{
error_log('ERROR: PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML');
if (_PS_MODE_DEV_)
error_log('ERROR: PREG_BACKTRACK_LIMIT_ERROR in function packJSinHTML');
return $html_content_copy;
}
return $html_content;