Commit graph

119 commits

Author SHA1 Message Date
Colin Kuskie
4a58f574b1 Provide a method to see if a storage location exists. This is handy for testing. 2011-04-08 16:26:16 -07:00
Colin Kuskie
49063cf526 Fix UTF-8 handling in WebGUI::Storage class. Add tests for all methods that were checked. Fixes bug #12023. 2011-01-18 21:07:03 -08:00
Doug Bell
55920f59e0 fix #11964 files show in trash and old revisions 2010-11-16 17:54:08 -06:00
Colin Kuskie
13a222f6ce Block files with dangerous names from coming in via Storage untar. 2010-08-11 15:46:02 -07:00
Colin Kuskie
9f724a7193 block the same set of extensions in http, scalar and file uploads in Storage. 2010-08-11 14:56:16 -07:00
Doug Bell
e71ce09588 add "pm" to list of verboten uploads 2010-08-10 21:18:22 -05:00
Graham Knop
8206aeaec5 enhance format of .wgaccess files to provide security for Gallery files 2010-04-15 11:38:58 -05:00
Colin Kuskie
5854e95130 Refix the thumbnail url problem with Storage so that it throws an error when no filename is passed. 2010-02-16 16:06:59 -08:00
Colin Kuskie
0decc8392c With the merged storage, do not generate log errors for non-image thumbnail requests. Fixes bug #11410. 2010-02-15 08:26:36 -08:00
Colin Kuskie
066e654640 Improve the performance of getThumbnailUrl by 1400%. Fixes bug #11346 2010-01-19 15:57:28 -08:00
Colin Kuskie
c15a49be8c Make Storage gracefully handle having its directory being nuked. Fixes bug #11077 2009-10-08 13:39:16 -07:00
Colin Kuskie
0e94d42034 Fix bug 10916: files prefixed with thumb- cause errors.
Rename files that are uploaded to remove thumb-.
2009-10-06 10:08:43 -07:00
Colin Kuskie
1c9908f490 Encapsulate logic for determining if an SSL request has been made.
Refactor core modules to use that.
2009-08-19 18:25:00 +00:00
Colin Kuskie
a3d8c390bd Fix CDN working with GUID style, vs hex style, storage locations.
Add tests for geting a GUID storage location.
2009-07-23 21:51:45 +00:00
Colin Kuskie
0af4acdfad Allow storage locations to have subdirectories, just to support the ZipArchive. 2009-07-21 21:44:31 +00:00
Colin Kuskie
27789f240b Fix mistakes in POD for Storage.pm 2009-07-06 04:41:26 +00:00
Colin Kuskie
1d3d61e16f Add hex generation code to tempspace Storage objects. Otherwise, they return undef. 2009-07-02 16:01:03 +00:00
Colin Kuskie
afa294973e De-scaleed a POD typo. 2009-06-22 22:55:39 +00:00
Colin Kuskie
67df78608d Add a method to Storage to return the hex value of the storageId.
Add a test for it.
Convert Storage to use that everywhere, instead of calculating and recalculating it.
2009-05-20 18:37:00 +00:00
Randall Schwartz
2fc4f3b54d CDN: perltidy on new/changed code 2009-05-14 00:35:41 +00:00
Randall Schwartz
acd3fded45 Content Delivery Network (CDN) - optional, for either uploads only or both uploads & extras (rfe 9134) 2009-05-13 21:12:05 +00:00
Colin Kuskie
4c1307e3d0 merge to 10219 2009-04-08 16:35:31 +00:00
Colin Kuskie
e399af16d0 Better INFO diagnostics for addFileFromFormPost 2009-03-23 02:37:49 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Colin Kuskie
da39f70f49 Remove the warnings pragma 2009-01-02 22:32:54 +00:00
JT Smith
8c410104a0 updated captcha 2008-12-16 23:05:38 +00:00
Graham Knop
6073703999 some fixes after Storage and Storage::Image merge 2008-12-03 00:33:13 +00:00
JT Smith
943e220508 - security: A problem was discovered and fixed in which users could email executable attachments to a collaboration system and then when viewed online, could execute them. 2008-12-02 20:13:28 +00:00
JT Smith
a8952dc886 don't need begin block 2008-11-26 16:11:12 +00:00
JT Smith
ee84cc7611 Deprecated WebGUI::Storage::Image. WebGUI::Storage can now do everything
WebGUI::Storage::Image can do.
2008-11-26 16:06:18 +00:00
Graham Knop
d6e00cab05 improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems 2008-11-12 01:17:33 +00:00
Colin Kuskie
69ca406b38 fix some broken POD in Storage.pm 2008-08-15 19:43:22 +00:00
Graham Knop
1d79230b9f don't try to chmod when extracting tar files in storage 2008-06-12 23:12:42 +00:00
Graham Knop
d828841533 some storage cleanups 2008-05-27 23:06:17 +00:00
Graham Knop
2c26486986 remove unneeded import 2008-05-27 23:06:13 +00:00
Graham Knop
b12e1922f0 fixed: packages try to restore owner 2008-04-03 14:53:43 +00:00
Graham Knop
d3b85ef723 fixed: errors on package importing are always reported as corrupted packages 2008-03-20 22:30:36 +00:00
Graham Knop
da5877eb3d added: Uploads locations and files are set to the same uid/gid that owns the uploads root 2008-03-19 22:36:57 +00:00
Graham Knop
8533cf8ae8 fixing test warnings, Storage should always return to the correct directory 2008-02-29 07:00:29 +00:00
Graham Knop
4601dd2bbe don't write .wgaccess files for world readable storage locations 2008-02-20 21:01:10 +00:00
Colin Kuskie
ed017f6007 Forward port diagnostics and $/ bug fix from 7.4 and Commerce branches. 2008-02-18 18:30:29 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
JT Smith
fa09c41598 replaced return; with return undef; 2008-01-24 21:58:15 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448 Finished? Ready for merge at least. 2007-12-17 22:22:06 +00:00
Colin Kuskie
96178fd70c first round of Perl::Critic cleanups. Do not use return undef, use a bare return instead 2007-12-05 00:30:43 +00:00
Colin Kuskie
1d8c55dc58 refactor Storage to use getPathFrag 2007-07-23 16:40:09 +00:00
Colin Kuskie
99d7037532 Fix a bug where storage objects allow deleting of files in other storage objects. 2007-07-23 16:24:37 +00:00
Colin Kuskie
6e49327bb6 Add POD comments to deleteFile to show what the accidental return value is.
Remove a Data::Dumper from Operation/Invite.pm
2007-07-05 21:22:54 +00:00
JT Smith
a7dde82421 updated copyright 2007-07-01 16:09:42 +00:00