aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
Commit message (Collapse)AuthorAgeFilesLines
* [ticket/12755] Apply de morgan to conditionalMarc Alexander2014-06-241-1/+1
| | | | PHPBB3-12755
* [ticket/12755] Terminate upload loop if upload reaches filesizeMarc Alexander2014-06-241-2/+12
| | | | | | | Terminate the upload loop if the expected filesize has been reached instead of trying to read more bytes until the timeout has been reached. PHPBB3-12755
* [ticket/12755] Change upload in remote_upload() method to fit get_remote_fileMarc Alexander2014-06-241-12/+14
| | | | PHPBB3-12755
* [ticket/12755] Add language string for timed out remote uploadMarc Alexander2014-06-231-1/+1
| | | | PHPBB3-12755
* [ticket/12755] Add timeout to remote upload to prevent infinite loopMarc Alexander2014-06-211-0/+15
| | | | PHPBB3-12755
* [ticket/10908] Download files only up to max_upload_filesize if limit is 0Nils Adermann2012-05-291-4/+29
| | | | PHPBB3-10908
* [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/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
* Still finetuning avatar uploading and delivery.Henry Sudhof2007-05-031-0/+2
| | | | | | | Remember that the recent changes broke compatibility with old uploaded avatars and that there were changes to the database entries. git-svn-id: file:///svn/phpbb/trunk@7453 89ea8834-ac86-4346-8a33-228a782c2dd0
* Prepare to be yelled at and brace for the tide of bug reports: I had hoped ↵Henry Sudhof2007-04-301-1/+5
| | | | | | | | | | | | we would not have to do this, but it seems that we have to. -Route all avatar downloads through download.php - adrien -Change the way inline attachments are delivered -Fixes a few (unreported) bugs, notably avatar upload during group generation -#10079 git-svn-id: file:///svn/phpbb/trunk@7429 89ea8834-ac86-4346-8a33-228a782c2dd0
* some fixes...Meik Sievertsen2007-04-021-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@7266 89ea8834-ac86-4346-8a33-228a782c2dd0
* again... some more fixes.Meik Sievertsen2007-03-081-0/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@7150 89ea8834-ac86-4346-8a33-228a782c2dd0
* some fixes to be committed.Meik Sievertsen2007-02-091-1/+14
| | | | git-svn-id: file:///svn/phpbb/trunk@6975 89ea8834-ac86-4346-8a33-228a782c2dd0
* adjust text for getting image dimensions as well as not suppressing warnings ↵Meik Sievertsen2007-02-071-1/+1
| | | | | | for getimagesize() git-svn-id: file:///svn/phpbb/trunk@6973 89ea8834-ac86-4346-8a33-228a782c2dd0
* oh my god... someone please slap me very hard for this.Meik Sievertsen2007-01-281-0/+2
| | | | git-svn-id: file:///svn/phpbb/trunk@6945 89ea8834-ac86-4346-8a33-228a782c2dd0
* - added confirm box to ucp zebra (adding fried/foe)Meik Sievertsen2007-01-241-2/+2
| | | | | | | | | - permission fixes for conversions - use more appropiate error message within convertor if source tables could not be found - other tiny fixes git-svn-id: file:///svn/phpbb/trunk@6925 89ea8834-ac86-4346-8a33-228a782c2dd0
* tiny alterationsMeik Sievertsen2007-01-061-3/+6
| | | | git-svn-id: file:///svn/phpbb/trunk@6846 89ea8834-ac86-4346-8a33-228a782c2dd0
* - removed download mode selection (the column info and constants will not be ↵Meik Sievertsen2007-01-031-1/+5
| | | | | | | | | | | | removed, we or others may be able to re-use them later on) - removing extension from physical filename for uploaded attachments (as has been suggested some time ago from our community), can still be used by using the new 'unique_ext' mode on file cleaning - fixed a bug with copying attachments if copying a topic - made sure no attachment files get removed used at another location - changed media player "embed" code. For some this may result in no auto-resizing - though a download link has been added. git-svn-id: file:///svn/phpbb/trunk@6831 89ea8834-ac86-4346-8a33-228a782c2dd0
* - some fixesMeik Sievertsen2006-12-211-36/+39
| | | | | | | - important bugfix for the mcp and determining allowed ids in general (if global announcements are included) git-svn-id: file:///svn/phpbb/trunk@6787 89ea8834-ac86-4346-8a33-228a782c2dd0
* rather large update, most important things done:Meik Sievertsen2006-11-241-1/+1
| | | | | | | | | | | - implemented provided patch/diff file for bug #5350 (Highway of Life) with some tiny changes and alterations - more username/colour changes/fixes - added a note about PM rule-dependant message removals so the user is not wondering too much if he can't remember his rules. :) - some column changes to fix unicode issues - bugfixes git-svn-id: file:///svn/phpbb/trunk@6650 89ea8834-ac86-4346-8a33-228a782c2dd0
* he braces style is deprecated as of PHP 6Meik Sievertsen2006-10-071-15/+0
| | | | git-svn-id: file:///svn/phpbb/trunk@6459 89ea8834-ac86-4346-8a33-228a782c2dd0
* - added confirmation to removing bbcodesMeik Sievertsen2006-09-281-2/+7
| | | | | | | | | | - added optional MX and DNSBL checks - added backtrace (triggering sql error) on error within sql_in_set as well as making sure it is handling an array - let users having f_list access to a forum actually see the forum without a topic list and not displaying an error message - this allows for giving people access to subforums but not the parent forum without the need to add the (sub-)forum to the index. - some additional bugfixes git-svn-id: file:///svn/phpbb/trunk@6414 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixed some bugsMeik Sievertsen2006-09-131-0/+18
| | | | | | | | | | | - changed attachment handling a bit - tried to remove target tags out of the code - do not add session ids to urls for bots as well as not creating a new session on each page view for them I bet i introduced some bugs too. ;) git-svn-id: file:///svn/phpbb/trunk@6364 89ea8834-ac86-4346-8a33-228a782c2dd0
* check file typeMeik Sievertsen2006-09-051-0/+44
| | | | git-svn-id: file:///svn/phpbb/trunk@6354 89ea8834-ac86-4346-8a33-228a782c2dd0
* some updates. Also adjusted the utf tools and normalizer more to our coding ↵Meik Sievertsen2006-08-221-1/+1
| | | | | | guidelines. git-svn-id: file:///svn/phpbb/trunk@6312 89ea8834-ac86-4346-8a33-228a782c2dd0
* make sure custom profile fields are created correctly on registration (#2225)Meik Sievertsen2006-06-131-51/+117
| | | | git-svn-id: file:///svn/phpbb/trunk@6058 89ea8834-ac86-4346-8a33-228a782c2dd0
* some tiny changes...Meik Sievertsen2006-05-261-8/+10
| | | | git-svn-id: file:///svn/phpbb/trunk@5967 89ea8834-ac86-4346-8a33-228a782c2dd0
* - fixed a few smaller thingsMeik Sievertsen2006-05-201-1/+1
| | | | git-svn-id: file:///svn/phpbb/trunk@5952 89ea8834-ac86-4346-8a33-228a782c2dd0
* - removed group settings from rolesMeik Sievertsen2006-04-221-8/+4
| | | | | | | | | | - added forum icon in front of forums in permissions acp - added trace permissions in permission masks (thanks naderman for writing the first code and for the idea... :)) - some bugfixes - PHP6 fix git-svn-id: file:///svn/phpbb/trunk@5824 89ea8834-ac86-4346-8a33-228a782c2dd0
* - clean up marklist calls (global function)Meik Sievertsen2006-04-171-0/+33
| | | | | | | | | | - added new feature: test out others permissions (admin permissions will not be copied) - changed attachment processing by directly using the template engine - fixed some attachment related bugs - additional tiny fixes git-svn-id: file:///svn/phpbb/trunk@5790 89ea8834-ac86-4346-8a33-228a782c2dd0