From 0dda5b8c12573779a1e2b7e820284dafe04956e3 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 25 Apr 2016 12:13:33 +0200 Subject: * splitting traits for safer file upload components --- app/php/components/FileUploadSecureFileSize.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 app/php/components/FileUploadSecureFileSize.php (limited to 'app/php/components/FileUploadSecureFileSize.php') diff --git a/app/php/components/FileUploadSecureFileSize.php b/app/php/components/FileUploadSecureFileSize.php new file mode 100644 index 0000000..1e60c9a --- /dev/null +++ b/app/php/components/FileUploadSecureFileSize.php @@ -0,0 +1,18 @@ +getIsSecure()) { + return filesize($this->getLocalName()); + } + return parent::getFileSize(); + } + +} + +?> -- cgit v1.2.3