aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/files/upload.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-12-24 15:32:50 +0100
committerMarc Alexander <admin@m-a-styles.de>2018-12-24 15:32:50 +0100
commit58856c06b046dda473a7c0c14d5b0459ad161185 (patch)
tree1532d1bca27bd2ef797dc73d6a38c8570ba3e48f /phpBB/phpbb/files/upload.php
parentca98cd413a6f01eb01e3ca60cea9b55409dadc61 (diff)
parent83f4074116e646507bbb448f745e0d9b356aa593 (diff)
downloadforums-58856c06b046dda473a7c0c14d5b0459ad161185.tar
forums-58856c06b046dda473a7c0c14d5b0459ad161185.tar.gz
forums-58856c06b046dda473a7c0c14d5b0459ad161185.tar.bz2
forums-58856c06b046dda473a7c0c14d5b0459ad161185.tar.xz
forums-58856c06b046dda473a7c0c14d5b0459ad161185.zip
Merge pull request #5481 from kasimi/ticket/15910-3.2.x
[ticket/15910] Pass object arguments by reference implicitly
Diffstat (limited to 'phpBB/phpbb/files/upload.php')
-rw-r--r--phpBB/phpbb/files/upload.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/phpbb/files/upload.php b/phpBB/phpbb/files/upload.php
index a9bf74094d..50e15c9844 100644
--- a/phpBB/phpbb/files/upload.php
+++ b/phpBB/phpbb/files/upload.php
@@ -261,7 +261,7 @@ class upload
*
* @param filespec $file Instance of filespec class
*/
- public function common_checks(&$file)
+ public function common_checks($file)
{
// Filesize is too big or it's 0 if it was larger than the maxsize in the upload form
if ($this->max_filesize && ($file->get('filesize') > $this->max_filesize || $file->get('filesize') == 0))
@@ -297,7 +297,7 @@ class upload
*
* @return bool True if extension is allowed, false if not
*/
- public function valid_extension(&$file)
+ public function valid_extension($file)
{
return (in_array($file->get('extension'), $this->allowed_extensions)) ? true : false;
}
@@ -310,7 +310,7 @@ class upload
* @return bool True if dimensions are valid or no constraints set, false
* if not
*/
- public function valid_dimensions(&$file)
+ public function valid_dimensions($file)
{
if (!$this->max_width && !$this->max_height && !$this->min_width && !$this->min_height)
{
@@ -350,7 +350,7 @@ class upload
*
* @return bool True if content is valid, false if not
*/
- public function valid_content(&$file)
+ public function valid_content($file)
{
return ($file->check_content($this->disallowed_content));
}