AjaxHandler

* separated into appropriate subclasses
* unified sanitizing of $_GET and $_POST data using build in filter_input()
* index now always tries to resolve page calls with ajaxHandler first and as a page last

minor bug-fixes to bugs that wre not reported yet, because they didn't occur yet
(e.g.: nobody tried to compose a comment with >7500 characters yet)
This commit is contained in:
Sarjuuk
2015-11-08 18:53:44 +01:00
parent 141bc10901
commit 99fdad29dd
14 changed files with 1570 additions and 1297 deletions

View File

@@ -277,13 +277,13 @@ class ScreenshotPage extends GenericPage
{
case 1:
trigger_error('validateScreenshot - the file exceeds the maximum size of '.ini_get('upload_max_filesize'), E_USER_WARNING);
return Lang::screenshot('error', 'selectSS');
return Lang::screenshot('error', 'selectSS');
case 3:
trigger_error('validateScreenshot - upload was interrupted');
return Lang::screenshot('error', 'selectSS');
trigger_error('validateScreenshot - upload was interrupted', E_USER_WARNING);
return Lang::screenshot('error', 'selectSS');
case 4:
trigger_error('validateScreenshot() - no file was received', E_USER_WARNING);
return Lang::screenshot('error', 'selectSS');
return Lang::screenshot('error', 'selectSS');
case 6:
trigger_error('validateScreenshot - temporary upload directory is not set', E_USER_WARNING);
return Lang::main('intError');