60 Commits

Author SHA1 Message Date
Arhell
4e28f262d3 update links 2022-08-15 01:00:48 +03:00
Arhell
8518f95605 update yii & php.net links 2022-08-09 00:11:49 +03:00
Arhell
fad0c5be77 update links 2022-08-07 11:54:16 +03:00
Ivan Sinkarenko
105f55ed0e Remove GLOB_BRACE from runtime code for compatilibity with PHP on Alpine Linux 2022-07-24 19:20:25 +02:00
Alexander Makarov
592ff73425 Fix CFileHelper::findFiles() to use correct directory separator under Windows 2020-08-03 19:48:20 +03:00
Armano
26368deace Fix spelling in documentation and add missing/invalid documentation [skip ci] 2016-07-19 14:01:14 +03:00
Carsten Brandt
38754bb259 bump @since version number for 1.1.15
they are in 1.1.16 now because 1.1.15 was a security release
2014-10-23 19:35:48 +02:00
UA2004
21ca239c49 Merge branch 'master' of git://github.com/yiisoft/yii into 3513-added-getExtensionByMimeType-method-to-CFileHelper 2014-08-31 21:51:40 +03:00
UA2004
228738ef65 Added 'getExtensionByMimeType' method to CFileHelper class, enh #3513 2014-08-31 21:49:14 +03:00
Carsten Brandt
12f5b214ed Merge pull request #3034 from acorncom/refactor-file-helper
Refactored CFileHelper to reuse the getExtension method
2014-08-15 02:33:29 +02:00
resurtm
eb825cbdef CFileHelper::removeDirectory() enhancements:
1. Added proper handling and support of the symlinked directories.
2. Added $options parameter.
2014-06-27 10:55:03 +06:00
Carsten Brandt
26f62d44a8 Fixed an issue with Filehelper and not accessable directories
which resulted in endless loop

http://www.yiiframework.com/forum/index.php/topic/50982-cfilehelper-bug-security-flaw/
2014-01-28 11:12:31 +01:00
David Baker
3869955a6b Reusing the CFileHelper getExtension method 2013-11-11 09:23:28 -07:00
Paul Klimov
2f3fe0303a Doc comments at 'CFileHelper::createDirectory()' has been fixed. 2013-08-29 13:17:48 +03:00
Paul Klimov
4e398ece03 Private method 'CFileHelper::mkdir()' has been converted into public 'CFileHelper::createDirectory()'. 2013-08-29 13:13:57 +03:00
Pavel Voronin
c2352b74a8 another way to return relative paths: findFilesRecursive main loop instead of findFiles post-processing 2013-08-14 15:37:00 +04:00
Pavel Voronin
a9871c68a2 code conv fix, charset specifying and docs improvement 2013-08-14 10:23:29 +04:00
Pavel Voronin
1465b19469 mbstring fallback for CFileHelper::findFiles 2013-08-02 18:29:06 +04:00
Pavel Voronin
50488721c9 add absolutePaths option to CFileHelper::findFiles
if absolutePaths is true (by default), function will return absolute paths, otherwise the relative ones
2013-08-02 17:40:24 +04:00
Alexander Makarov
d1b3be8b11 Fixes #2529: Silenced all chmod calls to prevent "chmod() operation not allowed" error on NTFS 2013-07-06 02:30:18 +04:00
resurtm
7b72148d43 Fixes #1725: CFileHelper::removeDirectory() has been added. 2013-05-30 20:01:25 +06:00
Carsten Brandt
450d50691f Various documentation and code style fixes 2013-05-01 23:29:10 +02:00
Abdul Malik Ikhsan
6247adaf26 change copyright symbol 2013-01-15 18:38:02 +07:00
Abdul Malik Ikhsan
46c8ef0d9a update copyright year
from 2011 to 2013
2013-01-15 17:28:17 +07:00
Alexander Makarov
4545516540 fixed formatting, added missing docs 2012-12-01 15:27:32 +04:00
Konstantin G Romanov
2888b0954a Merge remote-tracking branch 'upstream/master' into CFileHelper_recursive_copy_fix
Conflicts:
	tests/framework/utils/CFileHelperTest.php
2012-10-19 17:05:05 +04:00
Konstantin G Romanov
b892a0bab6 + CFileHelperTest
* newDirMode correctly setted on recursive creation of dst dir.
2012-10-12 14:03:52 +04:00
Alexander Makarov
afe2ba2c22 adjusted CFileHelper::validatePath docs 2012-10-10 20:28:15 +04:00
Alexander Kochetov
486723805e else if => elseif 2012-10-03 10:20:14 +04:00
resurtm
fd53ac7d8a Added unit tests. 2012-09-22 01:01:28 +06:00
resurtm
ea22489126 Fixed possible BC break. 2012-09-21 23:07:31 +06:00
resurtm
5203a3d495 Fixes #1393: CFileHelper::getMimeTypeByExtension() used to treat $magicFile parameter as array with MIME-types, but not the string containing path of the file with MIME-types as it should be. 2012-09-21 22:42:30 +06:00
resurtm
e607bbcd3b Fixes #1393: CFileHelper::getMimeTypeByExtension() used to treat $magicFile parameter as array with MIME-types, but not the string containing path of the file with MIME-types as it should be. 2012-09-21 22:40:13 +06:00
Alexander Makarov
d865a3bab8 Fixes #1057 Removed SVN ids 2012-09-09 22:23:45 +04:00
Konstantin G Romanov
0aeef5e973 * CSC 2012-08-09 16:29:43 +04:00
Konstantin G Romanov
83815053e2 * recursive dst creation at copyDirectory.
* dir access mode is set by chmod, again (note: if dst is created recursively, then only last dir will have newDirMode access).
2012-08-07 12:17:07 +04:00
Konstantin G Romanov
f763dba41e * copyDirectory creates dstDir recursively. 2012-08-06 15:35:41 +04:00
resurtm
8fe2edf16d Several minor changes and fixes. 2012-07-23 17:10:35 +06:00
qiang.xue
79de8e2bb0 Fixed the bug that CAssetManager doesn't set permission mode according to newDirMode and newFileModel properties when publishing a directory 2011-06-18 21:20:13 +00:00
qiang.xue
b3be4327be Added is_dir check. 2011-06-16 16:49:42 +00:00
mdomba
81212764d8 (Fixes issue 2191) 2011-03-09 10:34:38 +00:00
mdomba
a5468b2345 (Fixes issue 2146) used pathinfo to get proper file extension 2011-03-01 10:56:02 +00:00
qiang.xue
4be0af6917 changed copyright year. 2011-01-01 19:31:13 +00:00
alexander.makarow
5a63cdd657 (Fixes issue 1851) CFileHelper::getMimeType() was causing an error if used with PHP 5.2 and PECL fileinfo extension 2010-12-08 18:16:40 +00:00
mdomba
72b974560b Updated PHPDoc @param parameter names 2010-09-23 13:28:52 +00:00
qiang.xue
0cff04a7b7 (Fixes issue 1108) 2010-09-01 19:04:35 +00:00
qiang.xue
bf09fd37f5 Fixed file_info issue. 2010-08-02 14:41:08 +00:00
qiang.xue
f768ba2f70 (Fixes issue 1261) 2010-06-16 16:23:21 +00:00
alexander.makarow
cc218ea876 Added note about path separator to CFileHelper. 2010-06-15 21:55:50 +00:00
qiang.xue
1aa9fe761e * Added CFileHelper::getExtension 2010-03-31 19:35:21 +00:00