Revize 18ac9009
Přidáno uživatelem Ondřej Fibich před asi 9 roky(ů)
application/libraries/Forge.php | ||
---|---|---|
*/
|
||
public function validate()
|
||
{
|
||
$upload_filesize = file::shortened_size_to_bytes(ini_get('upload_max_filesize'));
|
||
$post_size = file::shortened_size_to_bytes(ini_get('post_max_size'));
|
||
if ($upload_filesize > $post_size)
|
||
{
|
||
$upload_filesize = $post_size;
|
||
}
|
||
|
||
if (server::content_length() !== NULL &&
|
||
server::content_length() > $upload_filesize)
|
||
{
|
||
status::warning('Uploaded data exceeded PHP size limit');
|
||
return FALSE;
|
||
}
|
||
$status = TRUE;
|
||
|
||
// validate inputs
|
Také k dispozici: Unified diff
Fix merge issue that removed all staff from developer branch :-).