aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-03 16:38:25 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-03 16:38:25 +0000
commit732ad23cd724e60df801a5cc32611e7d7706240d (patch)
tree3a36d276173f9f784cd7bc96bb6e2fa4d2dccf81 /phpBB/includes/functions_upload.php
parent1ca8081635e10cc47b9e36a56e9f35565fd6c2db (diff)
downloadforums-732ad23cd724e60df801a5cc32611e7d7706240d.tar
forums-732ad23cd724e60df801a5cc32611e7d7706240d.tar.gz
forums-732ad23cd724e60df801a5cc32611e7d7706240d.tar.bz2
forums-732ad23cd724e60df801a5cc32611e7d7706240d.tar.xz
forums-732ad23cd724e60df801a5cc32611e7d7706240d.zip
- removed download mode selection (the column info and constants will not be 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
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index e1cffaf710..31687ab3fe 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -76,7 +76,7 @@ class filespec
/**
* Cleans destination filename
*
- * @param real|unique $mode real creates a realname, filtering some characters, lowering every character. Unique creates an unique filename
+ * @param real|unique|unique_ext $mode real creates a realname, filtering some characters, lowering every character. Unique creates an unique filename
* @param string $prefix Prefix applied to filename
* @access public
*/
@@ -106,6 +106,10 @@ class filespec
break;
case 'unique':
+ $this->realname = $prefix . md5(unique_id());
+ break;
+
+ case 'unique_ext':
default:
$this->realname = $prefix . md5(unique_id()) . '.' . $this->extension;
break;