aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2432 from Nicofuma/ticket/11226Joas Schilling2014-05-291-0/+3
|\ | | | | | | | | | | | | | | | | | | [ticket/11226] filespec::move_file() should error correctly * Nicofuma/ticket/11226: [ticket/11226] Explicity set file_moved to false [ticket/11226] Add tests [ticket/11226] Use $user->lang() [ticket/11226] filespec::move_file() should error correctly
| * [ticket/11226] Explicity set file_moved to falseTristan Darricau2014-05-281-0/+1
| | | | | | | | PHPBB3-11226
| * [ticket/11226] Use $user->lang()Tristan Darricau2014-05-101-1/+1
| | | | | | | | PHPBB3-11226
| * [ticket/11226] filespec::move_file() should error correctlyTristan Darricau2014-05-101-0/+2
| | | | | | | | PHPBB3-11226
* | [ticket/12594] Remove @package tags and update file headersYuriy Rusko2014-05-271-8/+7
|/ | | | PHPBB3-12594
* [ticket/12458] Apply Squiz.WhiteSpace.SuperfluousWhitespace.* to legacy code.Andreas Fischer2014-04-291-1/+1
| | | | | | | | | * There MUST NOT be trailing whitespace at the end of lines. * There MUST NOT be whitespace before the first content of a file. * There MUST NOT be whitespace after the last content of a file. * Functions MUST NOT contain multiple empty lines in a row. PHPBB3-12458
* [ticket/12211] Do not run attachment file names twice through htmlspecialcharsMarc Alexander2014-04-111-1/+1
| | | | | | | | Upload filenames are already processed via htmlspecialchars in the type_cast_helper of the new request class. There is no need to run it through htmlspecialchars() again in the filespec class. PHPBB3-12211
* [feature/plupload/integration] Integration of PluploadAndreas Fischer2013-10-111-5/+26
| | | | | | | | This commit is a highly-refactored and up-to-date version of Fyorl's work which was part of his Google Summer of Code 2012 project "Attachment Improvements". PHPBB3-10929
* [ticket/11700] Move all recent code to namespacesNils Adermann2013-09-161-1/+1
| | | | PHPBB3-11700
* [ticket/11700] Modify all code to use the new interface namesNils Adermann2013-07-141-1/+1
| | | | PHPBB3-11700
* [ticket/10763] Use self when calling get_extension() in filespec classMarc Alexander2012-12-171-1/+1
| | | | PHPBB3-10763
* [ticket/10763] Make functions for remote avatars staticMarc Alexander2012-12-171-5/+10
| | | | | | | | | fileupload::image_types() and filespec::get_extension() are called statically while submitting the form for the remote avatar. Make them static as described in the ticket in order to prevent a PHP notice. Also change the tests to use the static functions. PHPBB3-10763
* [ticket/10939] Modified functions_upload to not use $_FILESFyorl2012-08-151-20/+25
| | | | PHPBB3-10939
* [ticket/10944] strpos now stricter and removed superfluous ternaryFyorl2012-07-171-1/+1
| | | | PHPBB3-10944
* [ticket/10944] Reverted changes in PHPBB3-10963Fyorl2012-07-171-6/+9
| | | | | | | is_image now just checks the mimetype reported by the browser and get_mimetype goes back to being unused. PHPBB3-10944
* [ticket/10963] filespec::get_mimetype now usedFyorl2012-07-041-11/+4
| | | | | | | filespec::get_mimetype now uses the finfo class in order to detect the mimetype of a given filename. filespec::is_image() now uses this method. PHPBB3-10963
* [ticket/10963] Removed superfluous ternary statement and strpos now stricterFyorl2012-07-021-1/+1
| | | | PHPBB3-10963
* [ticket/10963] Modified filespec::is_image() to check actual mimetypeFyorl2012-07-021-1/+5
| | | | | | | Modified filespec::is_image() to check the Fileinfo mimetype rather than trusting the browser. PHPBB3-10963
* Merge branch 'develop-olympus' into developAndreas Fischer2012-05-311-4/+29
|\ | | | | | | | | | | * develop-olympus: [ticket/10908] Document that 0 filesize configuration means limited by PHP [ticket/10908] Download files only up to max_upload_filesize if limit is 0
| * [ticket/10908] Download files only up to max_upload_filesize if limit is 0Nils Adermann2012-05-291-4/+29
| | | | | | | | PHPBB3-10908
* | [ticket/9916] Updating header license and removing Version $Id$Unknown2011-12-311-2/+1
| | | | | | | | PHPBB3-9916
* | [ticket/10345] Use the plural function in some more places.Joas Schilling2011-11-251-1/+7
| | | | | | | | | | | | | | I added two function avatar_explanation_string() and avatar_error_wrong_size() for easier handling of the "pixels"-languages, as they are used quite often. PHPBB3-10345
* | Merge branch 'develop-olympus' into developIgor Wiedler2011-01-101-2/+2
|\ \ | |/
| * [ticket/9764] Allow $config['mime_triggers'] to be an empty string.Andreas Fischer2010-10-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | explode('|', '') and explode('|', NULL) both return array(0 => '') which can cause filespec::check_content() to reject everything starting with a '<' character in case $config['mime_triggers'] is an empty string or not set. fileupload::set_disallowed_content() now filters out empty strings by calling array_diff() on the passed array, so setting $config['mime_triggers'] to an empty string will turn off mime checking completely. On the other side we want to fail safe if $config['mime_triggers'] is not set at all. To do this, the array fileupload::$disallowed_content now contains some default strings to be filtered out. PHPBB3-9764
* | [ticket/9556] Drop php closing tags, add trailing newlineIgor Wiedler2010-11-111-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Closing tags converted using Oleg's script. remove-php-end-tags.py -a . Trailing newlines added using the following where $ext is file extension. find . -type f -name "*.$ext" -print | xargs printf "e %s\nw\n" | ed -s; Extensions: php, css, html, js, xml. PHPBB3-9556
* | Merge branch 'ticket/bantu/7252' into developIgor Wiedler2010-09-121-16/+16
|\ \ | | | | | | | | | | | | | | | | | | * ticket/bantu/7252: [ticket/7252] Align array keys and values to "=>". [ticket/7252] Replace magic values with PHP constants. [ticket/7252] Replace magic values with PHP constants.
| * | [ticket/7252] Align array keys and values to "=>".Andreas Fischer2010-09-121-16/+16
| | | | | | | | | | | | PHPBB3-7252
| * | [ticket/7252] Replace magic values with PHP constants.Chris Smith2010-09-101-16/+16
| |/ | | | | | | | | | | | | fileupload::image_types() contained hardcoded references to values of built in PHP constants, these have been replaced with the constants instead now. PHPBB3-7252
* | [ticket/9394] Fix comment in functions_uploadIgor Wiedler2010-09-021-1/+1
|/ | | | PHPBB3-9394
* [ticket/9615] magic_quotes_gpc: call stripslashes() before utf8_basename()Andreas Fischer2010-08-041-2/+3
| | | | | | | | | | | | When magic_quotes_gpc is 'On' it also affects the $_FILES array and a filename like 'bantu"s testfile.txt' will be returned as 'bantu\"s testfile.txt'. Because utf8_basename() also strips off anything before the last backslash the filename was returned as '"s testfile.txt'. Calling stripslashes() before utf8_basename() solves the problem. PHPBB3-9615
* [feature/remote_upload-filesize] Also check HTTP content-length before ↵Andreas Fischer2010-05-141-0/+12
| | | | | | actually starting the file transfer. PHPBB3-9517
* [feature/remote_upload-filesize] When transferring files from a remote ↵Andreas Fischer2010-05-141-1/+12
| | | | | | webserver, abort the transfer as soon as the allowed filesize has been exceeded. PHPBB3-9517
* why am i so dumb sometimes... /me hits myself with the dumbness stick...Meik Sievertsen2009-09-131-1/+0
| | | | | | regression from r10122 git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10141 89ea8834-ac86-4346-8a33-228a782c2dd0
* Always remove temporary filename (Bug #50965)Meik Sievertsen2009-09-081-8/+9
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10122 89ea8834-ac86-4346-8a33-228a782c2dd0
* Apply locale-independent basename() to attachment filenames. New function ↵Meik Sievertsen2009-08-011-4/+4
| | | | | | added: utf8_basename(). (Bug #43335 - Patch by ocean=Yohsuke) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9905 89ea8834-ac86-4346-8a33-228a782c2dd0
* Fix bug #47775 - Properly convert and show filesize informationAndreas Fischer2009-07-111-6/+3
| | | | | | Authorised by: naderman git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9748 89ea8834-ac86-4346-8a33-228a782c2dd0
* remove hardcoded size unit for PHP_SIZE_OVERRUN error (Bug #29935)Meik Sievertsen2009-04-171-3/+36
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9464 89ea8834-ac86-4346-8a33-228a782c2dd0
* some changes for proper code documentationMeik Sievertsen2008-08-231-1/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8783 89ea8834-ac86-4346-8a33-228a782c2dd0
* change the way we do chmodd'ing. I know, my implementation really sucked... ↵Meik Sievertsen2008-08-221-12/+5
| | | | | | good we have motivated community members who point this out. ;) Thanks to faw for providing a way better function and for discussing and also abiding to our needs. :) LEW21 should maybe credited too... he gave the inspiration without knowing it. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8780 89ea8834-ac86-4346-8a33-228a782c2dd0
* the chmod change i already had within the changelog (by mistake). This ↵Meik Sievertsen2008-08-161-11/+20
| | | | | | | | should further secure writable directories and created files. Installation need to be tested on different hosts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8763 89ea8834-ac86-4346-8a33-228a782c2dd0
* And more new features for reasonable paranoia.Henry Sudhof2008-05-151-1/+58
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8555 89ea8834-ac86-4346-8a33-228a782c2dd0
* #23525Meik Sievertsen2008-04-211-2/+2
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8522 89ea8834-ac86-4346-8a33-228a782c2dd0
* #22355Meik Sievertsen2008-02-281-3/+3
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8420 89ea8834-ac86-4346-8a33-228a782c2dd0
* some language/style/code fixes (refer to the diff of the changelog)Meik Sievertsen2008-02-231-3/+3
| | | | git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8389 89ea8834-ac86-4346-8a33-228a782c2dd0
* dumdidum... sorry. ;)Meik Sievertsen2007-10-051-15/+23
| | | | git-svn-id: file:///svn/phpbb/trunk@8146 89ea8834-ac86-4346-8a33-228a782c2dd0
* some tiny fixes...Meik Sievertsen2007-09-121-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@8087 89ea8834-ac86-4346-8a33-228a782c2dd0
* we included a check for getimagesize() existance... now we again can ↵Meik Sievertsen2007-05-191-1/+1
| | | | | | suppress notices while running this function. git-svn-id: file:///svn/phpbb/trunk@7646 89ea8834-ac86-4346-8a33-228a782c2dd0
* #11074 - only process and check (as well as display) images if the category ↵Meik Sievertsen2007-05-171-2/+2
| | | | | | also matches. ;) git-svn-id: file:///svn/phpbb/trunk@7616 89ea8834-ac86-4346-8a33-228a782c2dd0
* label changes, language fixes...Meik Sievertsen2007-05-161-0/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@7608 89ea8834-ac86-4346-8a33-228a782c2dd0
* #10617Henry Sudhof2007-05-071-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@7501 89ea8834-ac86-4346-8a33-228a782c2dd0