1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-02-19 15:45:34 +01:00

59 Commits

Author SHA1 Message Date
DinHere
8c9d26db1f
[ticket/15392] Changed dirname(__FILE__) to __DIR__
Changed dirname(__FILE__) to __DIR__ everywhere

PHPBB3-15392
2021-03-03 22:24:10 +01:00
rxu
2fd4dbb685
[ticket/16690] Fix htmlspecialchars and htmlspecialchars_decode default flag
PHPBB3-16690
2021-01-20 00:21:24 +07:00
rxu
ec565de6cb
[ticket/16549] Fix tests
PHPBB3-16549
2020-10-18 10:37:16 +07:00
rxu
4c4debf004
[ticket/16549] PHPUnit function declarations tiny cleanup
PHPBB3-16549
2020-10-18 10:36:42 +07:00
Marc Alexander
ebac54aa9e
[ticket/14948] Adjust calls for twig and phpunit updates
PHPBB3-14948
2019-05-09 21:40:06 +02:00
Rubén Calvo
688d022f42
[ticket/15738] Remove code related with safe_mode
PHPBB3-15738
2019-05-09 18:47:50 +02:00
rxu
42b7782927
[ticket/14972] Migrate from deprecated getMock() method to createMock()
PHPBB3-14972
2019-05-08 21:57:00 +02:00
Marc Alexander
1dc14c0f38
[ticket/14670] Remove usage of prototype scope in tests
In this specific case, the mock container builder is used which does not
even support setting the scope.

PHPBB3-14670
2019-05-06 21:44:19 +02:00
kasimi
83f4074116
[ticket/15910] Pass object arguments by reference implicitly
PHPBB3-15910
2018-12-12 12:41:56 +01:00
rxu
f8fbe37936
[ticket/14972] replace all occurrences of sizeof() with the count()
PHPBB3-14972
2018-01-01 13:56:04 +01:00
Matt Friedman
14e8113fcf [ticket/14576] Move common required files to bootstrap
PHPBB3-14576
2016-03-31 11:06:47 -07:00
Marc Alexander
759dc9bb84 [ticket/13904] Set properties to protected where possible in filespec
PHPBB3-13904
2015-09-13 09:30:56 +02:00
Marc Alexander
40e614f564 [ticket/13904] Fix tests after changes to factory
PHPBB3-13904
2015-09-09 12:58:22 +02:00
Marc Alexander
327e36a4d6 [ticket/13904] Modify files for updated fast-image-size library
PHPBB3-13904
2015-09-09 09:41:40 +02:00
Marc Alexander
591995267a [ticket/13904] Improve test coverage of filespec class
PHPBB3-13904
2015-09-09 08:29:07 +02:00
Marc Alexander
b29b62debe [ticket/13904] Use ini_get() wrapper in file upload types
PHPBB3-13904
2015-09-09 08:29:06 +02:00
Marc Alexander
16f3b8c2b9 [ticket/13904] Modify files for changes in ini wrapper
PHPBB3-13904
2015-09-09 08:29:05 +02:00
Marc Alexander
36545d5cbe [ticket/13904] Switch around constructor arguments
PHPBB3-13904
2015-09-09 08:28:11 +02:00
Marc Alexander
cdde86ce7e [ticket/13904] Use \phpbb\php\ini class for ini_get()
PHPBB3-13904
2015-09-09 08:28:10 +02:00
Marc Alexander
7ba0fe47a8 [ticket/13904] Test move file on existing error
PHPBB3-13904
2015-09-09 08:28:09 +02:00
Marc Alexander
46e3d82196 [ticket/13904] Add more tests and test cases
PHPBB3-13904
2015-09-09 08:28:08 +02:00
Marc Alexander
3e99816fa2 [ticket/13904] Set visibility in files and improve test coverage
PHPBB3-13904
2015-09-09 08:28:07 +02:00
Marc Alexander
845233fc62 [ticket/13904] Improve test coverage and use constants instead of magic numbers
PHPBB3-13904
2015-09-09 08:28:05 +02:00
Marc Alexander
adcc901af1 [ticket/13904] Fix minor issues and move local_upload to its own class
PHPBB3-13904
2015-09-09 08:27:58 +02:00
Marc Alexander
b871dbcf1f [ticket/13904] Remove phpbb_root_path global from filespec class
PHPBB3-13904
2015-09-09 08:27:54 +02:00
Marc Alexander
52652ca182 [ticket/13904] Remove phpbb_root_path global from upload class
PHPBB3-13904
2015-09-09 08:27:53 +02:00
Marc Alexander
47f8f2cc88 [ticket/13904] Pass request service to upload instead of using global
PHPBB3-13904
2015-09-09 08:27:53 +02:00
Marc Alexander
697ac5f4aa [ticket/13904] Use language class instead of global user in filespec
PHPBB3-13904
2015-09-09 08:27:52 +02:00
Marc Alexander
ef59e0228a [ticket/13904] Fix tests again
PHPBB3-13904
2015-09-09 08:27:50 +02:00
Marc Alexander
25df7f8149 [ticket/13904] Remove functions_fileupload.php
PHPBB3-13904
2015-09-09 08:27:47 +02:00
Marc Alexander
a53825ad76 [ticket/13904] No longer use fileerror class for extending filespec class
PHPBB3-13904
2015-09-09 08:27:46 +02:00
Marc Alexander
dbfdb61f82 [ticket/13904] Fix fileupload tests
PHPBB3-13904
2015-09-09 08:27:43 +02:00
Marc Alexander
2915647a54 [ticket/13904] Fix filespec tests
PHPBB3-13904
2015-09-09 08:27:42 +02:00
Marc Alexander
58286171f1 [ticket/14150] Update fast-image-size to newest version
PHPBB3-14150
2015-09-08 12:59:55 +02:00
Tristan Darricau
734b89e75c Merge pull request #3524 from marc1706/ticket/8672
[ticket/8672] Add class for retrieving imagesize without download
2015-04-27 16:26:40 +02:00
Marc Alexander
03eae6fddd Merge branch '3.1.x' 2015-04-26 09:24:09 +02:00
Marc Alexander
55c5bc126d [ticket/8672] User $user->lang() instead of sprintf
PHPBB3-8672
2015-04-24 13:34:18 +02:00
Marc Alexander
39d6180c68 [ticket/8672] Use fastImageSize in classes
PHPBB3-8672
2015-04-24 13:33:14 +02:00
Marc Alexander
2fa99602c6 [ticket/8672] Add class for retrieving imagesize without download
getimagesize() always downloads the complete file before checking
the actual image dimensions. This class will be able to do the same
without having to download possibly large files.

PHPBB3-8672
2015-04-24 13:31:36 +02:00
MateBartus
4bdef6fd21 [ticket/13697] Moving filesystem related functions to filesystem service
* Moving filesystem service to \phpbb\filesystem namespace
 * Wraping Symfony's Filesystem component
 * Moving filesystem related functions from includes/functions.php
   into \phpbb\filesystem\filesystem
   Functions moved (and deprecated):
     - phpbb_chmod
     - phpbb_is_writable
     - phpbb_is_absolute
     - phpbb_own_realpath
     - phpbb_realpath
 * Adding interface for filesystem service

PHPBB3-13697
2015-04-16 13:24:10 +02:00
Cesar G
47514ca2df [ticket/13755] Ignore dots in path when determining file extension.
PHPBB3-13755
2015-04-10 16:23:51 -07:00
Marc Alexander
48b64b0a61 [ticket/13577] Skip filespec test requiring mimetype check on windows
PHPBB3-13577
2015-02-05 13:37:34 +01:00
Marc Alexander
9bc6e641bf [ticket/11148] Add mimetype guesser to filespec and fileupload class
The mimetype guesser will be used to get the mimetype of uploaded files.
Until now, this was only used for files uploaded with plupload. If a file
doesn't have a mimetype supplied, we will now try to get the correct mimetype.

PHPBB3-11148
2014-06-23 21:37:47 +02:00
Joas Schilling
cae8448fe4 Merge pull request #2432 from Nicofuma/ticket/11226
[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
2014-05-29 00:15:10 +02:00
Tristan Darricau
b75fb96bab [ticket/11226] Explicity set file_moved to false
PHPBB3-11226
2014-05-28 22:34:10 +02:00
Tristan Darricau
6a3b343dfc [ticket/11226] Add tests
PHPBB3-11226
2014-05-28 10:53:19 +02:00
Yuriy Rusko
a759704b39 [ticket/12594] Remove @package tags and update file headers
PHPBB3-12594
2014-05-27 20:51:13 +02:00
Marc Alexander
106be54de3 [ticket/12211] Do not run attachment file names twice through htmlspecialchars
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
2014-04-11 21:10:28 +02:00
Marc Alexander
91c3ad07ec [ticket/10851] Add unit and functional tests for checking attachments
These tests will make sure that fileuploads now work as expected regarding
the check for disallowed content.

PHPBB3-10851
2014-04-04 11:48:41 +02:00
Nils Adermann
7030578bbe [ticket/11698] Moving all autoloadable files to phpbb/
PHPBB3-11698
2013-07-14 01:32:34 -04:00