Apply suggestions from code review
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
bbe6554bb0
commit
948217da51
2 changed files with 2 additions and 3 deletions
|
@ -339,7 +339,6 @@ class App
|
||||||
set_time_limit((int)$this->config->get('system', 'ini_max_execution_time'));
|
set_time_limit((int)$this->config->get('system', 'ini_max_execution_time'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This has to be quite large to deal with embedded private photos
|
|
||||||
if ($this->config->get('system', 'ini_pcre_backtrack_limit') !== false) {
|
if ($this->config->get('system', 'ini_pcre_backtrack_limit') !== false) {
|
||||||
ini_set('pcre.backtrack_limit', (int)$this->config->get('system', 'ini_pcre_backtrack_limit'));
|
ini_set('pcre.backtrack_limit', (int)$this->config->get('system', 'ini_pcre_backtrack_limit'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -342,11 +342,11 @@ return [
|
||||||
'ipv4_resolve' => false,
|
'ipv4_resolve' => false,
|
||||||
|
|
||||||
// ini_max_execution_time (False|Integer)
|
// ini_max_execution_time (False|Integer)
|
||||||
// Set the number of seconds a script is allowed to run. Default unlimited for Friendica, False means disabled
|
// Set the number of seconds a script is allowed to run. Default unlimited for Friendica, false to use the system value.
|
||||||
'ini_max_execution_time' => 0,
|
'ini_max_execution_time' => 0,
|
||||||
|
|
||||||
// ini_pcre_backtrack_limit (False|Integer)
|
// ini_pcre_backtrack_limit (False|Integer)
|
||||||
// This has to be quite large to deal with embedded private photos. False means disabled
|
// This has to be quite large to deal with embedded private photos. False to use the system value.
|
||||||
'ini_pcre_backtrack_limit' => 500000,
|
'ini_pcre_backtrack_limit' => 500000,
|
||||||
|
|
||||||
// invitation_only (Boolean)
|
// invitation_only (Boolean)
|
||||||
|
|
Loading…
Reference in a new issue