1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-07 23:01:04 +02:00

Compare commits

...

725 Commits

Author SHA1 Message Date
Marc Alexander
bc4a787470 [prep-release-3.3.8] Update changelog for 3.3.8-RC1 2022-06-06 14:40:59 +02:00
Marc Alexander
c6ef628589 [prep-release-3.3.8] Add migration for 3.3.8-RC1 2022-06-06 14:40:31 +02:00
Marc Alexander
d4415d4ad8 [prep-release-3.3.8] Update version numbers to 3.3.8 2022-06-06 14:40:30 +02:00
Marc Alexander
2b92ff372b [prep-release-3.3.8] Update version numbers to 3.3.8-RC1 2022-06-06 14:40:29 +02:00
Marc Alexander
c410c9bc47 Merge pull request #6399 from marc1706/ticket/16987
[ticket/16987] Update composer dependencies to latest versions
2022-06-06 14:38:46 +02:00
Marc Alexander
52f625a88c [ticket/16987] Update composer dependencies to latest versions
PHPBB3-16987
2022-06-06 09:54:17 +02:00
Marc Alexander
feea7958f7 Merge pull request #6378 from hanakin/ticket/16978
[ticket/16978] add missing ul closeing tag
2022-06-06 09:45:44 +02:00
Marc Alexander
c61c130596 Merge pull request #6390 from marc1706/ticket/16988
[ticket/16988] Improve handling of appended branch info and security branches
2022-06-03 21:21:24 +02:00
Marc Alexander
59a95a3c35 Merge pull request #6396 from lionel-rowe/ticket/13859
[ticket/13859] Allow up-to-date format for Youtube profile field URLs
2022-05-02 20:49:59 +02:00
lionel-rowe
60af39b38c [ticket/13859] Reorder static & public in migration
PHPBB3-13859
2022-05-02 17:38:38 +02:00
Marc Alexander
8376012f9a Merge pull request #6393 from LukeWCS/3.3.x
[ticket/16990] Fix for the style template code in the post editor
2022-05-01 20:20:43 +02:00
lionel-rowe
dd6e110210 [ticket/13859] Allow up-to-date format for Youtube profile field URLs
Per the tracker issue:

> In 3.1 a youtube profilefield was added in which we can insert our youtube
> username to link to it.... There is just one major problem though...
>
> New youtube members no longer get an username. So I think we should decide on
> providing different ways to access their profile.

This PR will allow users to use any valid YouTube-domain URL, which allows for
all 3 formats (`/channel/...`, `/c/...`, and the now-legacy `/user/...`).

Per [YouTube's docs](https://support.google.com/youtube/answer/6180214?hl=en):

> ## Channel URL (ID-based)
> Example: youtube.com/channel/UCUZHFZ9jIKrLroW8LcyJEQQ
>
> This is the standard URL that YouTube channels use.
>
> ...
>
> ## Custom URL
> Example: youtube.com/c/YouTubeCreators
>
> A custom URL is a shorter, easy-to-remember URL that you can share with your
> audience.
>
> ...
>
> ## Legacy username URL
> Example: youtube.com/user/YouTube
>
> Depending on when your channel was created, it may have a username. Usernames
> are no longer required for channels today, but you can still use this URL to
> direct to your channel — even if your channel name has changed since you chose
> your username. Existing usernames can't be changed.

PHPBB3-13859
2022-05-01 14:54:39 +01:00
Marc Alexander
898075f0f8 Merge pull request #6391 from battye/ticket/16800
[ticket/16800] Fix 'No Posts' bug when no date format supplied
2022-04-30 23:02:10 +02:00
Marc Alexander
3308318524 Merge pull request #6377 from lionel-rowe/ticket/16981
[ticket/16981] Fix HTML-encoded emojis in email subject line
2022-04-30 22:27:37 +02:00
Marc Alexander
54c27e3e67 Merge pull request #6382 from marc1706/ticket/16967-3.3.x
[ticket/16967] Deprecate PHP in templates
2022-04-30 22:22:49 +02:00
Marc Alexander
54156dd9d8 Merge pull request #6358 from MichaIng/ticket/16959
[ticket/16959] Remove redundant URL parameters from notification mails
2022-04-30 22:21:51 +02:00
Marc Alexander
8084d977fb Merge pull request #6395 from kaileysnay/ticket/16991
[ticket/16991] Add events for bookmarks and subscribed topics in UCP
2022-04-30 21:56:06 +02:00
kaileysnay
997f1b92cf [ticket/16991] Add events for bookmarks and subscribed topics in UCP
PHPBB3-16991
2022-04-28 17:31:39 -04:00
kaileysnay
e1069bcbde [ticket/16991] Add events for bookmarks and subscribed topics in UCP
PHPBB3-16991
2022-04-28 17:31:39 -04:00
LukeWCS
9e22bc8691 [ticket/16990] Removed XHTML tag format
PHPBB3-16990
2022-04-27 23:18:52 +02:00
LukeWCS
751b0e2ede [ticket/16990] Fix for the style template code in the post editor
The code present in the prosilver style template causes the wrong
checkbox to be displayed in the post editor if the combination
`f_delete`:true and `f_softdelete`:false is active in the user
context. With this combination, this effectively prevents a forum
post from being deleted via the editor options.

Corrected the relevant section and switched to Twig syntax

PHPBB3-16990
2022-04-26 22:13:50 +02:00
battye
b9f7c3ff6e [ticket/16800] Fix 'No Posts' bug when no date format supplied
PHPBB3-16800
2022-04-17 18:03:48 +08:00
Marc Alexander
0d84769d66 [ticket/16988] Apply fixes suggested by shellcheck
PHPBB3-16988
2022-04-17 09:40:56 +02:00
Marc Alexander
cd9aea32b9 [ticket/16988] Improve handling of appended branch info and security branches
PHPBB3-16988
2022-04-17 09:35:12 +02:00
Marc Alexander
a12a6f52ae Merge pull request #6387 from marc1706/ticket/16987
[ticket/16987] Update composer and dependencies to latest versions
2022-04-16 22:20:23 +02:00
Marc Alexander
9739fabd68 Merge pull request #6385 from battye/ticket/16871
[ticket/16871] Do not allow negative forum and topic IDs in page_header
2022-04-15 23:48:28 +02:00
Marc Alexander
32ce101541 Merge pull request #6386 from battye/ticket/15947
[ticket/15947] Fix X out of 0 messages stored bug
2022-04-15 23:19:25 +02:00
Marc Alexander
89d2fcf5ed [ticket/16987] Move back to composer 2.2 for PHP 7.1 compatibility
PHPBB3-16987
2022-04-15 22:35:23 +02:00
Marc Alexander
5e10b02103 [ticket/16987] Update composer dependencies to latest versions
PHPBB3-16987
2022-04-15 22:23:55 +02:00
Marc Alexander
1ce11e39e1 [ticket/16987] Update composer to latest version
PHPBB3-16987
2022-04-15 22:22:55 +02:00
battye
aed2d00373 [ticket/15947] Fix X out of 0 messages stored bug
PHPBB3-15947
2022-04-15 22:36:12 +08:00
battye
691a891634 [ticket/16871] Do not allow negative forum and topic IDs in page_header
PHPBB3-16871
2022-04-15 19:58:42 +08:00
Marc Alexander
33af6d0f0a [ticket/16967] Fix typo
PHPBB3-16967
2022-04-13 20:33:09 +02:00
Marc Alexander
7a034a8c1e Merge pull request #6371 from nomind60s/ticket/19969
[ticket/19969] Hide flash status when post settings disallow [FLASH] …
2022-04-11 21:19:17 +02:00
Marc Alexander
4d857c4be7 [ticket/16967] Deprecate PHP in templates
PHPBB3-16967
2022-04-11 21:09:01 +02:00
Marc Alexander
3ee1efe7e0 Merge pull request #6376 from lionel-rowe/ticket/16977
[ticket/16977] Fix cron-job img tag layout and accessibility
2022-04-10 22:34:03 +02:00
hanakin
6fa019e23a [ticket/16978] add missing ul closeing tag
PHPBB3-16978
2022-04-05 12:51:03 -04:00
lionel-rowe
9b2f42748c [ticket/16981] Fix HTML-encoded emojis in email subject line
PHPBB3-16981
2022-04-05 17:18:33 +01:00
lionel-rowe
e53102fead [ticket/16977] Fix broken tests
PHPBB3-16977
2022-04-03 21:31:42 +01:00
lionel-rowe
87c1e631ef [ticket/16977] Move HTML rendering logic to template
PHPBB3-16977
2022-04-03 17:11:09 +01:00
lionel-rowe
8c982c7aa0 [ticket/16977] Fix cron-job img tag layout and accessibility
PHPBB3-16977
2022-04-03 17:11:00 +01:00
Marc Alexander
8cfec5370a Merge pull request #6374 from rxu/ticket/16976
[ticket/16976] Fix search results count
2022-04-03 15:10:14 +02:00
rxu
6cc0fe5f95 [ticket/16976] Fix search results count for in-topic/in-forum search
PHPBB3-16976
2022-03-27 12:59:03 +07:00
rxu
16b27be2d0 [ticket/16976] Fix search results count for PostgreSQL
PHPBB3-16976
2022-03-25 20:58:36 +07:00
rxu
0dd053eeba [ticket/16976] Fix search results count
PHPBB3-16976
2022-03-25 00:01:23 +07:00
Marc Alexander
4ed0201ffe Merge branch 'prep-release-3.3.7' into 3.3.x 2022-03-17 21:46:31 +01:00
Marc Alexander
19aadeefda [prep-release-3.3.7] Update changelog for 3.3.7 2022-03-17 20:13:27 +01:00
Marc Alexander
8ca00c529e [prep-release-3.3.7] Add migration for 3.3.7 2022-03-17 20:13:00 +01:00
Marc Alexander
e138328be1 [prep-release-3.3.7] Update version numbers to 3.3.7 2022-03-17 20:12:58 +01:00
Marc Alexander
faec4417f4 [prep-release-3.3.7] Update version numbers to 3.3.7 2022-03-17 20:12:57 +01:00
Marc Alexander
34f27a1670 Merge pull request #6373 from marc1706/ticket/16973
[ticket/16973] Use actual role ids for comparison of orphaned roles
2022-03-17 20:05:48 +01:00
Marc Alexander
028340ee52 Merge pull request #6372 from marc1706/ticket/16972
[ticket/16972] Rename update packages to advanced update in package.json
2022-03-17 20:05:36 +01:00
Marc Alexander
e86daaede6 [ticket/16972] Rename update packages to advanced update in package.json
PHPBB3-16972
2022-03-17 20:04:23 +01:00
Marc Alexander
91f2f2c6f1 [ticket/16973] Use actual role ids for comparison of orphaned roles
PHPBB3-16973
2022-03-17 20:00:46 +01:00
Marc Alexander
5a3a91b464 Merge pull request #6367 from rxu/ticket/16966
[ticket/16966] Fix redirect link after permanently deleting posts
2022-03-16 16:23:21 +01:00
Marc Alexander
1f972f0ee7 Merge branch 'prep-release-3.3.6' into 3.3.x 2022-03-15 21:32:09 +01:00
Marc Alexander
2e37b2dc2d [prep-release-3.3.6] Update changelog for 3.3.6 2022-03-14 21:17:29 +01:00
Marc Alexander
8d6a9245c1 [prep-release-3.3.6] Add migration for 3.3.6 2022-03-14 21:17:13 +01:00
Marc Alexander
1a8950d01b [prep-release-3.3.6] Update version numbers to 3.3.6 2022-03-14 21:17:11 +01:00
Marc Alexander
b4fa01e943 [prep-release-3.3.6] Update stylesheet hashes 2022-03-14 21:15:42 +01:00
Marc Alexander
cd057c126a Merge pull request #66 from phpbb/ticket/security-273
[ticket/security-273] Reset reset token info when re-activating account
2022-03-14 17:58:58 +01:00
Marc Alexander
377ebacf0d Merge pull request #65 from phpbb/ticket/security-272
[ticket/security-272] Use longer random string for activation key
2022-03-14 17:51:07 +01:00
Marc Alexander
fb2d1c2a28 Merge pull request #6368 from marc1706/ticket/15028
[ticket/15028] Rename automatic to advanced update
2022-03-13 19:46:19 +01:00
Marc Alexander
da2364b2c1 [ticket/15028] Replace remaining mentions of automatic update with advanced
PHPBB3-15028
2022-03-12 22:53:18 +01:00
nomind60s
a5899494b9 [ticket/19969] Hide flash status when post settings disallow [FLASH] BBCode
Add check for S_BBCODE_FLASH around FLASH_STATUS

PHPBB3-16969
2022-03-06 17:08:31 -07:00
MichaIng
86e009ad15 [ticket/16959] Remove redundant URL parameters from notification mails
Some phpBB forum notification emails send URLs to the forum with redundant URL
parameters, notably a forum IDs with topic URLs.

To have shorter and cleaner URLs, those are hereby removed.

Signed-off-by: MichaIng <micha@dietpi.com>

PHPBB3-16959
2022-03-04 01:21:00 +01:00
Marc Alexander
cc60a63f22 Merge pull request #6370 from rxu/ticket/16962
[ticket/16962] Fix datetime format test
2022-02-22 22:38:04 +01:00
Marc Alexander
4044900c69 [ticket/15028] Rephrase "recommendation" of who should use advanced update
PHPBB3-15028
2022-02-22 21:15:58 +01:00
rxu
e84cf2e5ba [ticket/16962] Fix datetime format test
PHPBB3-16962
2022-02-22 14:55:38 +07:00
Marc Alexander
e78664d68b [ticket/15028] Rename automatic to advanced update
Also made it clear that it's only for expert users.

PHPBB3-15028
2022-02-20 11:18:30 +01:00
rxu
a466be10c2 [ticket/16966] Fix redirect link after permanently deleting posts
PHPBB3-16966
2022-02-11 20:18:56 +07:00
Marc Alexander
4e5b9b23de [ticket/security-273] Reset reset token info when re-activating account
SECURITY-273
2022-02-10 21:37:34 +01:00
Marc Alexander
9bc98278fe [ticket/security-272] Use strtolower for actkey
SECURITY-272
2022-02-10 21:23:34 +01:00
Marc Alexander
33a789e030 [ticket/security-272] Use longer random string for activation key
SECURITY-272
2022-02-10 21:23:33 +01:00
Marc Alexander
c9db94f91c Merge branch 'prep-release-3.3.6' into 3.3.x 2022-02-10 21:19:01 +01:00
Marc Alexander
3cf83f1a62 Merge pull request #6364 from marc1706/ticket/16964
[ticket/16964] Update composer and dependencies to latest versions
2022-02-10 21:18:48 +01:00
Marc Alexander
d0344b9318 [ticket/16964] Update composer dependencies to latest versions
PHPBB3-16964
2022-02-05 08:59:35 +01:00
Marc Alexander
4072dd0246 [ticket/16964] Update composer to 2.2.6
PHPBB3-16964
2022-02-05 08:58:34 +01:00
Marc Alexander
6a6d83c674 Merge branch 'prep-release-3.3.6' into 3.3.x 2022-02-05 08:55:58 +01:00
Marc Alexander
94fe538100 Merge pull request #6355 from marc1706/ticket/16872
[ticket/16872] Add event exporter for BBCode
2022-02-05 08:55:45 +01:00
Marc Alexander
4f9252568a Merge pull request #6359 from marc1706/ticket/16891
ticket/16891] Add new method for deferring cache purge to end of request
2022-02-01 20:20:10 +01:00
Marc Alexander
5017dbd58d [ticket/16891] Rename constant for event name of deferred purge
PHPBB3-16891
2022-01-31 20:34:24 +01:00
Marc Alexander
c4fcbc2cbd [ticket/16891] Add mock to purge extension manager cache in tests
PHPBB3-16891
2022-01-31 20:34:24 +01:00
Marc Alexander
3be1e3029e [ticket/16891] Remove unused use statements
PHPBB3-16891
2022-01-31 20:34:23 +01:00
Marc Alexander
7992b3f476 [ticket/16891] Update test files to work with changed cache service
PHPBB3-16891
2022-01-31 20:34:23 +01:00
Marc Alexander
9dc25510a1 [ticket/16891] Add new method for deferring cache purge to end of request
PHPBB3-16891
2022-01-31 20:34:23 +01:00
Marc Alexander
420f494628 Merge branch 'prep-release-3.3.6' into 3.3.x 2022-01-31 20:33:10 +01:00
Marc Alexander
8e4559f49f Merge pull request #6363 from marc1706/ticket/16956
[ticket/16956] Remove router cache flag
2022-01-31 20:32:56 +01:00
Marc Alexander
0fe95a032b [ticket/16956] Remove router cache flag
The deferred purge will be used in the future instead. The cache flag in the
router only causes additional issues by trying to rebuild the routing
mid-request

PHPBB3-16956
2022-01-31 16:52:19 +01:00
Marc Alexander
9446db9cde Merge pull request #6360 from marc1706/ticket/16960
[ticket/16960] Set config.php service even if container is not compiled
2022-01-30 21:45:07 +01:00
Marc Alexander
adea3e734a [ticket/16960] Set config.php service even if container is not compiled
PHPBB3-16960
2022-01-30 15:19:28 +01:00
Marc Alexander
919ff4575b Merge pull request #6356 from marc1706/ticket/13821
[ticket/13821] Support displaying ignored posts on post review page
2022-01-25 22:13:21 +01:00
Marc Alexander
ee56f0fe7d Merge branch 'prep-release-3.3.6' into 3.3.x 2022-01-25 22:10:59 +01:00
Marc Alexander
893dad0297 Merge pull request #6357 from marc1706/ticket/16956
[ticket/16956] Remove use of recently changed status for extensions
2022-01-25 22:10:37 +01:00
Marc Alexander
d08843853e [ticket/16956] Remove use of recently changed status for extensions
PHPBB3-16956
2022-01-23 20:51:50 +01:00
Marc Alexander
97356d9879 [ticket/13821] Remove HTML from PHP files and deduplicate lang variable
PHPBB3-13821
2022-01-22 23:50:33 +01:00
Marc Alexander
9f09dec049 [ticket/13821] Support displaying ignored posts on post review page
PHPBB3-13821
2022-01-22 22:28:04 +01:00
Marc Alexander
8a3164aaf7 [ticket/16872] Add event exporter for BBCode
PHPBB3-16872
2022-01-22 16:52:45 +01:00
Marc Alexander
6caf2f83ad [3.3.x] Update versions to 3.3.7-dev 2022-01-21 22:15:12 +01:00
Marc Alexander
4805e705ad Merge branch 'prep-release-3.3.6' into 3.3.x 2022-01-21 22:13:26 +01:00
Marc Alexander
9bf6e7f32e [prep-release-3.3.6] Update changelog for 3.3.6-RC1 2022-01-19 22:11:25 +01:00
Marc Alexander
c93381ff04 [prep-release-3.3.6] Add migration for 3.3.6-RC1 2022-01-19 22:09:33 +01:00
Marc Alexander
88b79aba00 [prep-release-3.3.6] Update version numbers to 3.3.6 2022-01-19 22:09:29 +01:00
Marc Alexander
9c6df33e3b Merge pull request #6257 from xchwarze/patch-1
[ticket/16828] Add hook event before find_users_for_notification() ex…
2022-01-19 21:37:20 +01:00
Marc Alexander
605726a4d7 Merge pull request #6321 from rxu/ticket/16902
[ticket/16902] Improve search results count - 3.3.x
2022-01-19 20:33:58 +01:00
Marc Alexander
3103e99dc7 [ticket/16828] Adjust event to allow modifying notified_users and early return
PHPBB3-16828
2022-01-19 20:32:10 +01:00
rxu
a8c93ff661 [ticket/16902] Fix docblock
PHPBB3-16902
2022-01-19 09:23:56 +07:00
Marc Alexander
1f4eac13b9 Merge pull request #6341 from MichaIng/ticket/16930
[ticket/16930] Remove redundant topic ID from last post URL
2022-01-17 17:15:46 +01:00
rxu
5e43f6195c [ticket/16902] Make flood interval control in tests consistent
Also remove crawler dumping tool

PHPBB3-16902
2022-01-15 10:37:45 +07:00
rxu
6846eeaa48 [ticket/16902] Add search index created assertion to test
PHPBB3-16902
2022-01-15 10:19:12 +07:00
rxu
b602b57b02 [ticket/16902] Add search index deleted assertion to test
PHPBB3-16902
2022-01-15 10:19:11 +07:00
rxu
ba487a24dc [ticket/16902] Fix PosgreSQL author topics search results count
PHPBB3-16902
2022-01-15 10:18:16 +07:00
rxu
015c9313a7 [ticket/16902] Extend test
PHPBB3-16902
2022-01-15 10:18:16 +07:00
rxu
e7c81cd1a6 [ticket/16902] Improve test, use DISTINCT for precise results count
PHPBB3-16902
2022-01-15 10:16:54 +07:00
rxu
bf7936380a [ticket/16902] Improve search results count for MySQL
PHPBB3-16902
2022-01-15 10:16:14 +07:00
MichaIng
3f56bbb9d1 [ticket/16930] Remove redundant topic ID from last post URL
Since U_LAST_POST contains the post ID, the topic ID is not required.
This shortens the URL and helps with SEO by reducing the amount of
redundant parameters in internal links.

PHPBB3-16930

Signed-off-by: MichaIng <micha@dietpi.com>
2022-01-15 02:27:13 +01:00
Marc Alexander
44d0a3a716 Merge pull request #6343 from rxu/ticket/16933
[ticket/16933] Consistent handling of hyphen by phpBB Native search backend
2022-01-12 21:26:10 +01:00
Marc Alexander
999122acdb Merge pull request #6342 from Mikir2021/ticket/16914
[ticket/16914] Added missing id to language select element
2022-01-12 21:24:02 +01:00
Marc Alexander
c785c4b716 Merge pull request #6332 from rxu/ticket/16912
[ticket/16912] Rewrite email headers encoding method
2022-01-12 21:18:26 +01:00
rxu
b305070e0a [ticket/16912] Adjust code
PHPBB3-16912
2021-12-24 20:44:15 +07:00
Marc Alexander
99634d4c05 Merge pull request #6347 from DaRk1V0iD/ticket/16940_3.3.x
[ticket/16940] Optimize phpBB Native Search [3.3.x]
2021-12-23 22:24:28 +01:00
Dark❶
fad1c652c0 [ticket/16940] Optimize phpBB Native Search
PHPBB3-16940
2021-12-14 16:26:39 +05:30
Marc Alexander
1df74005a8 Merge pull request #6318 from 3D-I/ticket/16899
[ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
2021-12-13 20:23:13 +01:00
Dark❶
c7856ce162 [ticket/16940] Optimize phpBB Native Search
- Use `ORDER BY post_id ASC` for batch posts.

PHPBB3-16940
2021-12-13 19:36:36 +05:30
Dark❶
cccf01447f [ticket/16940] Optimize phpBB Native Search
- Fixed infinite loop

PHPBB3-16940
2021-12-13 00:37:04 +05:30
Dark❶
ddc3eaa5bf [ticket/16940] Optimize phpBB Native Search
- Removed `end()` replaced with `$ids[count($ids) - 1]`

PHPBB3-16940
2021-12-12 20:44:37 +05:30
Dark❶
65fa73855c [ticket/16940] Optimize phpBB Native Search
- Use `sql_query_limit` instead of `sql_query`
- Update SQL query to reflect the above change
- Assign proper last `post_id` to `$post_counter`

PHPBB3-16940
2021-12-12 19:51:50 +05:30
Marc Alexander
391e4943d9 Merge pull request #6346 from marc1706/ticket/16939
[ticket/16939] Wait for postgresql service to start on windows CI runners
2021-12-12 11:00:22 +01:00
Marc Alexander
6801f7949f [ticket/16939] Use ALTER SYSTEM queries to modify psql config variables
PHPBB3-16939
2021-12-12 09:39:14 +01:00
Marc Alexander
710aa10905 [ticket/16939] Wait for postgresql service to start on windows CI runners
PHPBB3-16939
2021-12-12 09:16:51 +01:00
rxu
4a78202f96 [ticket/16933] Fix test
PHPBB3-16933
2021-12-11 19:46:47 +07:00
rxu
d6a591cde3 [ticket/16933] Consistent handling of hyphen by phpBB Native search backend
PHPBB3-16933
2021-12-11 19:03:29 +07:00
Mikir
4e447cc91a [ticket/16914] Added missing id to language select element
The id of the language select element referenced by it's label was missing.

PHPBB3-16914
2021-12-08 19:54:02 +01:00
Marc Alexander
ec75f1741b Merge pull request #6337 from marc1706/ticket/16924
[ticket/16924] Do not double escape values inserted into config table
2021-12-07 21:57:47 +01:00
Marc Alexander
af38f9d6c8 Merge pull request #6339 from marc1706/ticket/16928
[ticket/16928] Update composer and dependencies to latest versions
2021-12-05 12:01:48 +01:00
Marc Alexander
4614d3d92b [ticket/16928] Update composer dependencies to latest versions
PHPBB3-16928
2021-12-05 09:51:15 +01:00
Marc Alexander
866a4dc6d4 [ticket/16928] Update composer to 2.1.14
PHPBB3-16928
2021-12-05 09:51:02 +01:00
Marc Alexander
492352f652 Merge pull request #6338 from marc1706/ticket/16927
[ticket/16927] Update plupload to latest version
2021-12-05 09:45:14 +01:00
Marc Alexander
1d05f722cb [ticket/16927] Update plupload to latest version
PHPBB3-16927
2021-12-04 22:21:35 +01:00
Marc Alexander
c1b88de806 Merge pull request #6312 from rxu/ticket/16895
[ticket/16895] Fix role removal for migrator permission tool
2021-12-03 21:06:14 +01:00
Marc Alexander
89168c507b [ticket/16895] Add missing return and remove not needed declarations
PHPBB3-16895
2021-12-03 20:14:26 +01:00
Marc Alexander
7a69c0f98c Merge pull request #6336 from 3D-I/ticket/16921
[ticket/16921] Increase PHP requirements in the DOCS
2021-12-03 19:51:24 +01:00
Marc Alexander
8cc6075d92 [ticket/16924] Do not double escape values inserted into config table
PHPBB3-16924
2021-12-02 21:01:45 +01:00
Marc Alexander
03b36d46c3 [ticket/16924] Add test to cover potential escaping of json values
PHPBB3-16924
2021-12-02 20:59:06 +01:00
3D-I
8104a446d4 [ticket/16921] Increase PHP requirements in the DOCS
Attempt to fix postgres test for 3.3.x. branch

PHPBB3-16921
2021-12-02 05:51:09 +01:00
3D-I
aff3852568 [ticket/16921] Increase PHP requirements in the DOCS
PHPBB3-16921
2021-12-02 02:02:31 +01:00
Marc Alexander
39905eaf4b Merge pull request #6324 from rxu/ticket/16908
[ticket/16908] Fix PHP warning on non-existent post id requests
2021-11-30 21:54:09 +01:00
Marc Alexander
534cef94c9 Merge pull request #6323 from rxu/ticket/16904
[ticket/16904] Fix regression in MCP for topics selection
2021-11-30 21:11:39 +01:00
rxu
a0ced790e2 [ticket/16912] Add test
PHPBB3-16912
2021-11-23 22:29:49 +07:00
rxu
0537365cac [ticket/16912] Rewrite email headers encoding method
Based on symfony/polyfill-iconv implementations.

PHPBB3-16912
2021-11-23 15:17:11 +07:00
Máté Bartus
6e34e3c24e Merge pull request #6326 from rxu/ticket/16910
[ticket/16910] Fix PHP warnings on uploading orphaned files to posts
2021-11-21 21:45:33 +01:00
rxu
fecf3306f3 [ticket/16910] Add test
PHPBB3-16910
2021-11-14 21:02:40 +07:00
rxu
39db7005cd [ticket/16910] Fix PHP warnings on uploading orphaned files to posts
PHPBB3-16910
2021-11-14 16:31:52 +07:00
Marc Alexander
e956629735 Merge pull request #6325 from rxu/ticket/16909
[ticket/16909] Add PHP 8.2 builds to test matrix
2021-11-14 10:11:22 +01:00
rxu
89ca3f087e [ticket/16909] Fix Postgres configuration on Windows, fix auth tests
PHPBB3-16909
2021-11-14 10:02:53 +07:00
rxu
29d137cc5e [ticket/16909] Add PHP 8.2 builds to test matrix
PHPBB3-16909
2021-11-13 20:58:47 +07:00
rxu
88a11c1377 [ticket/16908] Fix PHP warning on non-existent post id requests
PHPBB3-16908
2021-11-13 18:16:39 +07:00
rxu
69b895caae [ticket/16895] Rename custom method
PHPBB3-16895
2021-11-10 14:13:02 +07:00
rxu
d7f433fbf7 [ticket/16895] Rename migration file
PHPBB3-16895
2021-11-10 13:30:14 +07:00
rxu
4d00c4c8af [ticket/16904] Adjust tests
PHPBB3-16904
2021-11-07 19:38:49 +07:00
rxu
1e6c5cd381 [ticket/16904] Refactor MCP tests
PHPBB3-16904
2021-11-05 22:32:14 +07:00
rxu
0fbc5a3d83 [ticket/16904] Refactor MCP tests
PHPBB3-16904
2021-11-05 01:03:59 +07:00
Marc Alexander
3bfb2b3f69 Merge pull request #6322 from rxu/ticket/16900
[ticket/16900] Fix quoted_printable_encode() behavior
2021-11-03 20:07:10 +01:00
rxu
337d876df7 [ticket/16904] Fix regression in MCP for topics selection
Regression introduced in #5760

PHPBB3-16904
2021-11-02 13:55:39 +07:00
Marc Alexander
8246023e0f Merge pull request #6313 from Nicofuma/ticket/16891
[ticket/16891] Do not change an extension status in the midle of a request
2021-10-30 21:57:15 +02:00
Tristan Darricau
b28b94b1f1 [ticket/16891] Do not change an extension status in the middle of a request
When enabling an extension, it should be considered as not being enabled for
the entire request as if the "enabled" flag is switch during the request, the
extension will stay not loaded (same when disabling an extension).

Example when it can be an issue today : if the router is called for the first
time after enabling the extension and if the extension uses a custom route
loader (like phpbb/pages) then the router will fail because the custom route
will be found but the custom loader will not be loaded and available.

PHPBB3-16891
2021-10-30 04:25:31 +02:00
Marc Alexander
baf4bd7b5c Merge pull request #6317 from Nicofuma/ticket/16896
[ticket/16896] Adds comments in .gitignore and excludes custom envs
2021-10-29 21:29:00 +02:00
Marc Alexander
81126dc97e Merge pull request #6314 from Nicofuma/ticket/16897
[ticket/16897] Ignores sqlite3 warnings when an explain query plan query fails
2021-10-29 21:26:22 +02:00
rxu
391f80d480 [ticket/16900] Fix quoted_printable_encode() behavior
PHPBB3-16900
2021-10-30 00:33:10 +07:00
Tristan Darricau
febe44ed79 [ticket/16896] Adds comments in .gitignore and excludes custom envs
PHPBB3-16896
2021-10-28 22:15:25 +02:00
Tristan Darricau
ede9a6815a [ticket/16897] Ignores sqlite3 warnings when an explain query plan query fails
PHPBB3-16897
2021-10-28 21:52:03 +02:00
rxu
2801415c1c [ticket/16895] Rename language entry
PHPBB3-16895
2021-10-28 21:13:52 +07:00
Marc Alexander
dd029ed592 Merge pull request #6315 from Nicofuma/ticket/16898
[ticket/16898] Do not restrict the debug error handler to the dev env
2021-10-26 21:52:50 +02:00
Tristan Darricau
1d4fbd240e [ticket/16898] Do not restrict the debug error handler to the dev env
PHPBB3-16898
2021-10-26 20:23:28 +02:00
rxu
7275cdd152 [ticket/16895] Adjust test
PHPBB3-16895
2021-10-27 00:15:46 +07:00
rxu
b1e6fad38a [ticket/16895] Add test
PHPBB3-16895
2021-10-26 20:14:45 +07:00
3D-I
9671a00214 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
Prevent breaking layout

PHPBB3-16899
2021-10-24 19:52:37 +02:00
3D-I
d17b15a545 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
PHPBB3-16899
2021-10-22 16:14:28 +02:00
3D-I
f841a0a1b8 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
Attempt to read the SVG dimensions

PHPBB3-16899
2021-10-22 02:34:39 +02:00
3D-I
7472d300b6 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
Attempt to read the SVG dimensions

PHPBB3-16899
2021-10-22 02:30:13 +02:00
3D-I
06ef03f8d6 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
Take care of the old crappy IE

PHPBB3-16899
2021-10-21 23:54:58 +02:00
3D-I
40322bb1b6 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
PHPBB3-16899
2021-10-21 23:44:15 +02:00
3D-I
6218c2e120 [ticket/16899] Add SVG and WEBP to ranks, smilies and topic icons
PHPBB3-16899
2021-10-21 22:05:38 +02:00
3D-I
afbf7aadd2 [ticket/16899] Add SVG and WEBP image type to ranks, smilies and topic icons
PHPBB3-16899
2021-10-21 21:48:14 +02:00
rxu
a860a3310a [ticket/16895] Add migration
PHPBB3-16895
2021-10-20 21:58:24 +07:00
rxu
ca24013470 [ticket/16895] Fix role removal for migrator permission tool
PHPBB3-16895
2021-10-19 23:26:32 +07:00
Marc Alexander
99734fc648 Merge pull request #6278 from rxu/ticket/16859
[ticket/16859] Exclude language selection option on register if only 1 language is installed
2021-10-19 17:24:33 +02:00
Marc Alexander
3547f0bf0e Merge pull request #6310 from marc1706/ticket/16892
[ticket/16892] Remove duplicate entry for jav files in extension_guesser
2021-10-17 21:57:35 +02:00
Marc Alexander
01a22e7223 Merge pull request #6302 from 3D-I/ticket/16885
[ticket/16885] Add type casting filters to Twig
2021-10-17 20:32:49 +02:00
Arshid
2145938d74 [ticket/16892] Remove duplicate entry for jav files in extension_guesser
Remove duplicated key

PHPBB3-16892
2021-10-17 20:25:20 +02:00
Marc Alexander
62a8741494 Merge pull request #6303 from marc1706/ticket/13508
[ticket/13508] Add tests for INCLUDEJS & INCLUDECSS with twig syntax
2021-10-17 19:51:31 +02:00
3D-I
13155bf846 [ticket/16885] Add type casting filters to Twig
PHPBB3-16885
2021-10-17 16:18:47 +02:00
Marc Alexander
4d966d1762 [ticket/13508] Rename test files to fit in with current naming
PHPBB3-13508
2021-10-17 13:21:35 +02:00
Marc Alexander
056fb494b1 [ticket/13508] Switch back to current include format
PHPBB3-13508
2021-10-17 13:20:22 +02:00
Marc Alexander
da7c9f6a7c Merge pull request #6306 from 3D-I/ticket/16888
[ticket/16888] List allowed attachment types using accept attribute
2021-10-17 11:58:58 +02:00
Marc Alexander
73eb54bf54 Merge pull request #6309 from marc1706/ticket/16889
[ticket/16889] Move windows CI runner to server 2019
2021-10-17 11:57:03 +02:00
Marc Alexander
6af8872ef3 [ticket/16889] Create separate runs for unit and functional tests
PHPBB3-16889
2021-10-17 11:22:39 +02:00
Marc Alexander
a3070bedeb [ticket/16889] Remove invalid command for adding registry entry
PHPBB3-16889
2021-10-17 11:22:39 +02:00
Marc Alexander
a12f903e93 [ticket/16889] Remove build on push for ticket branch again
PHPBB3-16889
2021-10-17 11:22:39 +02:00
rxu
d4cb357b26 [ticket/16889] Run functional tests separately
PHPBB3-16889
2021-10-17 11:22:38 +02:00
Marc Alexander
b6e31e3664 [ticket/16889] Disable anti spyware in windows CI builds
PHPBB3-16889
2021-10-17 11:22:38 +02:00
3D-I
7355ee623a [ticket/16888] Add the list of allowed files in the attachment tab
Add core.modify_default_attachments_template_vars

PHPBB3-16888
2021-10-11 08:23:52 +02:00
3D-I
a7385f0fbe [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-11 04:54:52 +02:00
3D-I
c5814ddfaa [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-11 04:24:15 +02:00
3D-I
96c439bf10 [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-11 04:15:29 +02:00
3D-I
7a21a9032e [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-11 04:04:13 +02:00
3D-I
1619014120 [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-11 02:48:39 +02:00
Marc Alexander
0a4d062e16 Merge pull request #6308 from marc1706/ticket/16889
[ticket/16889] Improve antivirus behavior in windows CI builds
2021-10-10 21:17:49 +02:00
Marc Alexander
dda2dfecb3 [ticket/16889] Improve antivirus behavior in windows CI builds
PHPBB3-16889
2021-10-10 20:45:50 +02:00
3D-I
b29c0ca153 [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-10 16:26:28 +02:00
3D-I
c0296d10db [ticket/16888] Add the list of allowed files in the attachment tab
Using the accept attribute

PHPBB3-16888
2021-10-10 16:17:40 +02:00
3D-I
4f3f91dfc3 [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-10 14:00:42 +02:00
3D-I
52c931a8b6 [ticket/16888] Add the list of allowed files in the attachment tab
Request mixed content using shorthand Ternary

PHPBB3-16888
2021-10-10 13:34:31 +02:00
3D-I
9ca70432d9 [ticket/16888] Add the list of allowed files in the attachment tab
Make sure we are checking both PMs and topics

PHPBB3-16888
2021-10-10 13:27:08 +02:00
Marc Alexander
1fbb807cc7 Merge pull request #6305 from Crizz0/ticket/16887
[ticket/16887] Update PHP requirements to include PHP 8.0
2021-10-10 12:56:29 +02:00
3D-I
98f446df67 [ticket/16888] Add the list of allowed files in the attachment tab
PHPBB3-16888
2021-10-10 07:06:24 +02:00
Christian Schnegelberger
43b9254d1d [ticket/16887] Update PHP requirements to include PHP 8.0
PHPBB3-16887
2021-10-09 21:12:18 +02:00
Marc Alexander
97034e0776 [ticket/13508] Add tests for include_js() and include_css() twig tokens
PHPBB3-13508
2021-10-07 21:20:09 +02:00
Marc Alexander
02e5a7afc4 [ticket/13508] Add include_css() and fix include_js() code linting issues
PHPBB3-13508
2021-10-07 21:19:35 +02:00
Marc Alexander
7efddcef54 [ticket/13508] Add include_js twig tag as replacement for INCLUDEJS
PHPBB3-13508
2021-10-07 20:08:31 +02:00
3D-I
ea36b83ee9 [ticket/16885] Add type casting filters to Twig
PHPBB3-16885
2021-10-06 19:57:13 +02:00
Máté Bartus
59cece1a0a Merge pull request #6301 from marc1706/ticket/16883
[ticket/16883] Check if var is array before using count()
2021-10-06 08:39:40 +02:00
Marc Alexander
e5fa23c3c0 [ticket/16883] Check if var is array before using count()
PHPBB3-16883
2021-10-05 21:07:50 +02:00
Marc Alexander
9a7d88362f Merge pull request #6299 from 3D-I/ticket/16881
[ticket/16881] Fix ACP statistics
2021-10-03 17:34:28 +02:00
Marc Alexander
7f6c859b0d [3.3.x] Fix invalid build.xml syntax after merge 2021-10-03 17:31:42 +02:00
Marc Alexander
441a5a2175 Merge branch 'prep-release-3.3.5' into 3.3.x 2021-10-03 15:25:12 +02:00
Marc Alexander
ceca69d121 [prep-release-3.3.5] Update changelog for 3.3.5 2021-10-01 22:42:05 +02:00
Marc Alexander
6a72d0305b [prep-release-3.3.5] Add migration for 3.3.5 2021-10-01 22:40:24 +02:00
Marc Alexander
7a8d9671c2 [prep-release-3.3.5] Update version numbers to 3.3.5 2021-10-01 22:40:21 +02:00
Marc Alexander
5b3d238804 Merge branch 'ticket/security/254' into prep-release-3.3.5 2021-10-01 22:35:54 +02:00
Máté Bartus
1860a06eab Merge pull request #6296 from 3D-I/ticket/16879
[ticket/16879] Add events to phpbb_mail()
2021-09-29 09:36:03 +02:00
3D-I
1862992ca7 [ticket/16881] Fix ACP statistics
PHPBB3-16881
2021-09-24 00:39:44 +02:00
3D-I
95fa6cceee [ticket/16881] Fix ACP statistics
PHPBB3-16881
2021-09-23 21:51:11 +02:00
3D-I
19076de94c [ticket/16879] Add events to phpbb_mail()
PHPBB3-16879
2021-09-22 22:39:19 +02:00
3D-I
27289cbfad [ticket/16879] Add events to phpbb_mail()
PHPBB3-16879
2021-09-20 22:02:25 +02:00
Marc Alexander
3d76942cdf Merge branch 'prep-release-3.3.5' into 3.3.x 2021-09-20 11:27:10 +02:00
Marc Alexander
51cc7202f8 Merge pull request #6295 from marc1706/ticket/16878
[ticket/16878] Default to threads value of 1 when using argon with libsodium
2021-09-20 11:26:39 +02:00
3D-I
303a933403 [ticket/16879] Add events to phpbb_mail()
PHPBB3-16879
2021-09-19 03:59:46 +02:00
3D-I
54b54c41c6 [ticket/16879] Add event core.phpbb_mail_after
PHPBB3-16879
2021-09-19 03:00:59 +02:00
Marc Alexander
59e50d6d53 [ticket/16878] Default to threads value of 1 when using argon with libsodium
PHPBB3-16878
2021-09-18 11:45:23 +02:00
Marc Alexander
2a1656e7b3 Merge pull request #6293 from 3D-I/ticket/16868-33
[ticket/16868] Fix links to coding guidelines
2021-09-16 11:02:33 +02:00
3D-I
12ce75b5f5 [ticket/16868] Fix links to coding guidelines
PHPBB3-16868
2021-09-16 10:27:08 +02:00
Marc Alexander
b82d90eb39 [ticket/security/254] Add tests for validation
SECURITY-254
2021-09-13 10:38:35 +02:00
Marc Alexander
f302440297 [ticket/security/254] Disallow whitespace characters that might be invisible
SECURITY-254
2021-09-13 10:38:35 +02:00
Marc Alexander
848021c743 Merge pull request #6291 from 3D-I/ticket/16850-33
[ticket/16850][3.3] Update webfont loader
2021-09-13 10:32:48 +02:00
Marc Alexander
c4b4e1d7a9 Merge branch 'prep-release-3.3.5' into 3.3.x 2021-09-13 10:32:30 +02:00
Marc Alexander
ed33f06235 Merge branch 'ticket/16850' into prep-release-3.3.5 2021-09-13 10:32:18 +02:00
3D-I
643845306a [ticket/16850] Update webfont loader
PHPBB3-16850
2021-09-13 10:32:04 +02:00
3D-I
95511540ea [ticket/16850] Update webfont loader
PHPBB3-16850
2021-09-13 10:31:56 +02:00
3D-I
b3b5fcc874 [ticket/16850] Update webfont loader
PHPBB3-16850
2021-09-12 21:48:29 +02:00
3D-I
1b4ba00a73 [ticket/16850] Update webfont loader
PHPBB3-16850
2021-09-11 17:02:12 +02:00
Marc Alexander
8caf2e7c59 [3.3.x] Update versions to 3.3.6-dev 2021-09-11 13:38:10 +02:00
Marc Alexander
a87a60c108 Merge branch 'prep-release-3.3.5' into 3.3.x 2021-09-11 13:36:37 +02:00
Marc Alexander
5b5502390d [prep-release-3.3.5] Update changelog for 3.3.5-RC1 2021-09-08 22:37:18 +02:00
Marc Alexander
1db2d9c3c1 [prep-release-3.3.5] Add migration for 3.3.5-RC1 2021-09-08 22:37:11 +02:00
Marc Alexander
5ef0105a5f [prep-release-3.3.5] Update version numbers to 3.3.5 2021-09-08 22:37:07 +02:00
Marc Alexander
e8421dbab1 [prep-release-3.3.5] Update version numbers to 3.3.5-RC1 2021-09-08 22:37:06 +02:00
Marc Alexander
e0197d711f Merge pull request #6288 from marc1706/ticket/16870
[ticket/16870] Ensure to properly escape values when running db:migrate
2021-09-08 22:25:02 +02:00
Marc Alexander
11563ce971 [ticket/16870] Use string representation of float value for treshold
PHPBB3-16870
2021-09-08 20:42:41 +02:00
Marc Alexander
bbcac37e30 [ticket/16870] Ensure to properly escape values when running db:migrate
PHPBB3-16870
2021-09-08 20:24:44 +02:00
Marc Alexander
8c25f3a9f7 Merge pull request #6284 from marc1706/ticket/16867
[ticket/16867] Update symfony and text-formatter to latest versions
2021-09-06 17:37:38 +02:00
Marc Alexander
e371f3eac7 [ticket/16867] Update symfony and text-formatter to latest versions
PHPBB3-16867
2021-09-05 22:08:06 +02:00
Máté Bartus
dc7012864b Merge pull request #6282 from CHItA/ticket/16858
[ticket/16858] Fix coding style
2021-09-03 10:31:12 +02:00
Máté Bartus
cd53106ec3 [ticket/16858] Fix coding style
PHPBB3-16858
2021-09-03 09:58:34 +02:00
Máté Bartus
86af3a2ba4 Merge pull request #6275 from marc1706/ticket/16856
[ticket/16856] Add lang_js twig function as replacement for LA_
2021-09-02 10:48:22 +02:00
Marc Alexander
a6d4b460f1 Merge pull request #6277 from 3D-I/ticket/16858
[ticket/16858] Update jQuery to 3.6.0
2021-08-31 20:59:56 +02:00
Marc Alexander
975ad95bff Merge pull request #6281 from paul999/ticket/16865
[ticket/16865] Update IRC + discord links in composer and documentati…
2021-08-31 20:57:29 +02:00
paul sohier
61c59bdc91 [ticket/16865] Update IRC + discord links in composer and documentation
Update the links from Freenode to Libera.chat,
add discord as option to chat in composer.json,
and remove references to wiki.phpbb.com
(And replace it with links to the development documentation)

PHPBB3-16865
2021-08-31 16:03:41 +02:00
Marc Alexander
79efbcaa4e [ticket/16856] Make other vars twig as well
PHPBB3-16856
2021-08-30 20:09:15 +02:00
rxu
8cc0e5438a [ticket/16859] Twigify the rest of respective template block
PHPBB3-16859
2021-08-29 11:10:00 +07:00
rxu
2c8be65dcf [ticket/16859] Apply similar logic to UCP board preferences
PHPBB3-16859
2021-08-29 01:48:55 +07:00
rxu
c3598d0d58 [ticket/16859] Optimize code to save SQL queries and use Twig for template
PHPBB3-16859
2021-08-29 00:15:06 +07:00
rxu
92a2c08616 [ticket/16859] Exclude language option on register if only 1 language installed
PHPBB3-16859
2021-08-28 22:51:51 +07:00
DSR!
e5b43eabe1 [ticket/16828] Add hook event before find_users_for_notification() execute
PHPBB3-16828
2021-08-27 11:58:55 -03:00
3D-I
a8be17dd4d [ticket/16858] Update jQuery to 3.6.0
PHPBB3-16858
2021-08-27 04:25:41 +02:00
Marc Alexander
170ddeaf63 [ticket/16856] Maybe use lang_js() for all lang vars in JS
PHPBB3-16856
2021-08-26 20:51:43 +02:00
Marc Alexander
8db200d75f Merge pull request #6272 from MichaIng/ticket/16851
[ticket/16851] Add Amazonbot, AhrefsBot and SemrushBot
2021-08-25 20:07:31 +02:00
MichaIng
3638b36849 [ticket/16851] Add Amazonbot, AhrefsBot and SemrushBot
PHPBB3-16851

Signed-off-by: MichaIng <micha@dietpi.com>
2021-08-25 14:46:37 +02:00
Marc Alexander
8804cf885b [ticket/16856] Remove extra empty line
PHPBB3-16856
2021-08-24 19:07:32 +02:00
Marc Alexander
ad23388043 [ticket/16856] Add tests for lang_js() function
PHPBB3-16856
2021-08-24 19:05:13 +02:00
Marc Alexander
79a8ed4677 [ticket/16856] Proof that lang_js() actually works
PHPBB3-16856
2021-08-24 19:05:13 +02:00
Marc Alexander
5eeb213b12 [ticket/16856] Add lang_js() twig function
PHPBB3-16856
2021-08-24 19:05:13 +02:00
Marc Alexander
75df7c202e Merge pull request #6258 from rxu/ticket/15729
[ticket/15729] Avoid unnecessary email headers encoding in Base64
2021-08-23 21:23:42 +02:00
Marc Alexander
2ef37a8e77 Merge pull request #6260 from Prosk8er/ticket/16829
[ticket/16829] forumtitle and lastsubject text decoration hover
2021-08-23 21:16:58 +02:00
Marc Alexander
acbcb18226 Merge pull request #5760 from v12mike/ticket/16138
Ticket/16138 Eliminate redundant parameters from board URLs
2021-08-23 20:11:35 +02:00
Marc Alexander
5d0fd9f73a Merge pull request #6262 from 3D-I/ticket/16832
[ticket/16832] Fix UCP attachments plural rules
2021-08-20 16:58:01 +02:00
Marc Alexander
47c583516b Merge pull request #6261 from Prosk8er/ticket/16831
[ticket/16831] fix tabs missing delimiters and remove commented class
2021-08-19 19:56:39 +02:00
Marc Alexander
91c6edf092 Merge pull request #6271 from 3D-I/ticket/16850-33
[ticket/16850][3.3] Update webfont loader
2021-08-19 19:43:12 +02:00
Marc Alexander
c2873cbc01 Merge pull request #6265 from rxu/ticket/16840
[ticket/16840] Add more PHP 8.x builds to tests matrix
2021-08-16 23:06:39 +02:00
3D-I
a1f1c0cc9d [ticket/16850] Update webfont loader
PHPBB3-16850
2021-08-16 11:45:52 +02:00
3D-I
f46ebf5bec [ticket/16850] Update webfont loader
PHPBB3-16850
2021-08-16 11:33:54 +02:00
Prosk8er
6dd7b7e8b5 [ticket/16831] fix tabs missing delimiters and remove commented class
this is just to fix tabs, missing delimiters, and
remove old commented classes in css files

PHPBB3-16831
2021-08-14 17:33:26 -04:00
rxu
721a39502a [ticket/16840] Add PHP 8.0 / 8.1 builds for Windows tests
Also fix Postrges PHP 8.1 related issue.

PHPBB3-16840
2021-08-07 16:50:45 +07:00
rxu
b01a956461 [ticket/16840] Add PHP 8.1 test
PHPBB3-16840
2021-08-07 16:34:38 +07:00
3D-I
364c6d328a [ticket/16832] Fix UCP attachments plural rules
PHPBB3-16832
2021-08-05 14:30:03 +02:00
Prosk8er
f7487e4e5c [ticket/16829] forumtitle and lastsubject text decoration hover
Fix text decoration on hover for forumtitle and last subject

PHPBB3-16829
2021-08-04 19:50:17 -04:00
Marc Alexander
84b414a4f0 [ticket/16138] Remove redundant specifiers from functional test URLs
PHPBB3-16138
2021-08-04 22:11:02 +02:00
Marc Alexander
3f9e6c6013 [ticket/16138] Remove extra variables and improve fallback to viewforum
PHPBB3-16138
2021-08-04 21:44:49 +02:00
rxu
e855f5cba4 [ticket/15729] Avoid unnecessary email headers encoding in Base64
PHPBB3-15729
2021-08-03 00:33:13 +07:00
Máté Bartus
90fccff6f1 Merge pull request #6252 from rxu/ticket/16823
[ticket/16823] Make datetime class correctly handle edge cases
2021-07-31 12:05:26 +02:00
Marc Alexander
a380c78e1e Merge pull request #6254 from marc1706/ticket/16804
[ticket/16804] Extend bbcode help line tooltip
2021-07-23 22:25:31 +02:00
3D-I
a6a18f2c59 [ticket/16804] Extend bbcode help line tooltip
PHPBB3-16804
2021-07-23 21:47:07 +02:00
Máté Bartus
6efebf7571 Merge pull request #6249 from marc1706/ticket/12075
[ticket/12075] Add acp/modules language file to extensions page
2021-07-23 07:56:00 +02:00
Marc Alexander
c7c3adf762 Merge pull request #6250 from rxu/ticket/16822
[ticket/16822] Replace patchwork/utf8 with symfony/polyfill
2021-07-22 10:53:34 +02:00
rxu
2e29bb48fa [ticket/16823] Adjust wrapper condition
PHPBB3-16823
2021-07-20 20:59:28 +07:00
rxu
e1fc0a9059 [ticket/16823] Make datetime class correctly handle edge cases
PHPBB3-16823
2021-07-20 20:35:04 +07:00
rxu
c846dd5666 [ticket/16822] Replace patchwork/utf8 with symfony/polyfill
PHPBB3-16822
2021-07-19 22:49:04 +07:00
Marc Alexander
19a5900db5 Merge pull request #6247 from 3D-I/ticket/16810
[ticket/16810] Fix No end tag in Custom BBCodes
2021-07-18 15:19:19 +02:00
Marc Alexander
5de8c3dc3c [ticket/12075] Add acp/modules language file to extensions page
PHPBB3-12075
2021-07-18 10:57:30 +02:00
Marc Alexander
3ae0d347c9 Merge pull request #6245 from 3D-I/ticket/16657
[ticket/16657] Properly decode usernames in member list live-search
2021-07-15 22:02:07 +02:00
3D-I
2244635a41 [ticket/16810] Fix No end tag in Custom BBCodes
PHPBB3-16810
2021-07-15 20:32:53 +02:00
3D-I
68bd4e9faa [ticket/16810] Fix No end tag in Custom BBCodes
PHPBB3-16810
2021-07-15 20:27:37 +02:00
Máté Bartus
8c12c46869 Merge pull request #6242 from Prosk8er/ticket/16816
[ticket/16816] acp style html validation fixes
2021-07-13 18:48:07 +02:00
3D-I
aecd1fa04e [ticket/16657] Properly decode usernames in member list live-search
Housekeeping

PHPBB3-16657
2021-07-13 16:06:21 +02:00
3D-I
ac781e570f [ticket/16657] Properly decode usernames in member list live-search
PHPBB3-16657
2021-07-13 09:04:06 +02:00
Prosk8er
f28eed7f30 [ticket/16816] acp style html validation fixes
Fix acp style html validation errors and warnings

PHPBB3-16816
2021-07-09 18:14:38 -04:00
Máté Bartus
2869e04756 Merge pull request #6241 from Prosk8er/ticket/16812
[ticket/16812] login_body.html missing dt tag for autologin
2021-07-08 23:27:29 +02:00
Marc Alexander
4446888eb2 Merge pull request #6238 from marc1706/ticket/16809
[ticket/16809] Reset display options at the end of preferences test
2021-07-08 21:09:36 +02:00
Prosk8er
7783912e93 [ticket/16812] login_body.html missing dt tag for autologin
Added missing dt element to autologin

PHPBB3-16812
2021-07-06 17:40:36 -04:00
Marc Alexander
ccac4c5fe8 Merge pull request #6233 from rxu/ticket/16799
[ticket/16799] Fix OAuth external account linking PHP fatal error
2021-07-06 22:02:12 +02:00
Máté Bartus
a18681cfe4 Merge pull request #6237 from DavidIQ/ticket/16808
[ticket/16808] Make sure we have a container before using it
2021-07-06 11:32:56 +02:00
Marc Alexander
096dad1767 [ticket/16809] Reset display options at the end of preferences test
PHPBB3-16809
2021-07-03 22:25:43 +02:00
David Colón
068f8eed25 [ticket/16808] Make sure we have a container before using it
PHPBB3-16808
2021-07-01 16:34:38 -04:00
rxu
dd62829f96 [ticket/16799] Use offsetExists() method instead of array_key_exists()
PHPBB3-16799
2021-07-01 03:04:38 +07:00
Marc Alexander
be2959fbab Merge pull request #6234 from 3D-I/ticket/16729
[ticket/16729] Fix Unknown named parameter in Log - PHP 8
2021-06-30 21:10:10 +02:00
Marc Alexander
7acdef7c01 Merge pull request #6224 from 3D-I/ticket/16789
[ticket/16789] Update user_delete() doc-block
2021-06-29 22:33:47 +02:00
Marc Alexander
bd0b6fbdab Merge pull request #6223 from 3D-I/ticket/16788
[ticket/16788] Update s9e/text-formatter to 2.9.3
2021-06-29 22:26:38 +02:00
Marc Alexander
c83b4c21a4 Merge pull request #6207 from marc1706/ticket/13700
[ticket/13700] Add method for initializing config after cache purge
2021-06-29 22:24:40 +02:00
3D-I
9d22731d03 [ticket/16729] Fix Unknown named parameter in Log - PHP 8
PHPBB3-16729
2021-06-15 17:57:17 +02:00
rxu
7b5ad8bb74 [ticket/16799] Fix OAuth external account linking PHP fatal error
PHPBB3-16799
2021-06-15 00:08:45 +07:00
Marc Alexander
af98278590 Merge pull request #6226 from 3D-I/ticket/16795
[ticket/16795] Add template events around signature in viewtopic
2021-06-13 22:06:35 +02:00
Marc Alexander
bef2a4bc41 Merge pull request #6230 from iMattPro/ticket/16798
[ticket/16798] Scale down phpbb logo on readme
2021-06-13 22:01:36 +02:00
Matt Friedman
f24396ac0d [ticket/16798] Scale down phpbb logo on readme
PHPBB3-16798
2021-06-13 08:44:46 -07:00
Marc Alexander
b7f57eb556 Merge pull request #6227 from 3D-I/ticket/16793
[ticket/16793] Fix topic/post attachments visibility - PHP 8
2021-06-13 11:26:06 +02:00
3D-I
c452c83855 [ticket/16793] Fix topic/post visibility - PHP 8
PHPBB3-16793
2021-06-10 21:34:32 +02:00
3D-I
c9b32463de [ticket/16793] Fix topic/post visibility - PHP 8
PHPBB3-16793
2021-06-09 04:08:04 +02:00
3D-I
1177f843c5 [ticket/16793] Fix topic/post visibility - PHP 8
PHPBB3-16793
2021-06-09 03:52:48 +02:00
3D-I
cdca28eb3f [ticket/16795] Add template events around signature in viewtopic
PHPBB3-16795
2021-06-08 23:03:53 +02:00
Marc Alexander
5169a947f4 Merge pull request #6222 from 3D-I/ticket/16787
[ticket/16787] Properly check if fsockopen() is enabled - PHP 8
2021-06-05 22:24:19 +02:00
3D-I
6a95f34d0c [ticket/16789] Update user_delete() doc-block
PHPBB3-16789
2021-06-03 08:10:04 +02:00
3D-I
11083e59ed [ticket/16789] Update user_delete() doc-block
PHPBB3-16789
2021-06-03 06:40:31 +02:00
3D-I
6b45c7bd5f [ticket/16788] Update s9e/text-formatter to 2.9.3
PHPBB3-16788
2021-06-01 02:56:45 +02:00
3D-I
c5ec036b84 [ticket/16787] Properly check if fsockopen() is enabled - PHP 8
PHPBB3-16787
2021-05-29 21:53:23 +02:00
3D-I
e2cfc01964 [ticket/16787] Properly check if fsockopen() is enabled - PHP 8
PHPBB3-16787
2021-05-29 21:12:07 +02:00
Marc Alexander
f007aef3d8 Merge pull request #6218 from marc1706/ticket/16783
[ticket/16783] Remove structure only backup
2021-05-29 20:05:43 +02:00
Marc Alexander
5ad1ae4e7b Merge pull request #6220 from marc1706/ticket/16785
[ticket/16785] Use correct versions in build.xml for 3.3.x branch
2021-05-28 07:23:56 +02:00
Marc Alexander
32586407d1 [ticket/16785] Use correct versions in build.xml for 3.3.x branch
PHPBB3-16785
2021-05-27 22:36:33 +02:00
Marc Alexander
233b2fdade Merge pull request #6219 from hanakin/ticket/16784
[ticket/16784] ignore .vscode
2021-05-27 21:33:37 +02:00
hanakin
ea7e07c1a4 [ticket/16784] ignore .vscode
PHPBB3-17684
2021-05-26 21:01:19 -10:00
Marc Alexander
acf0885948 [ticket/16783] Add back data only backups
PHPBB3-16783
2021-05-25 20:34:31 +02:00
Marc Alexander
d8ef094a9a [ticket/16783] Remove structure only backup
PHPBB3-16783
2021-05-24 16:36:54 +02:00
Marc Alexander
c925e8ef58 [ticket/16138] Use same variable for forum_id in one query
PHPBB3-16138
2021-05-24 16:20:13 +02:00
Marc Alexander
3f518c9263 [ticket/16138] Use array to pass parameters to append_sid()
PHPBB3-16138
2021-05-24 16:14:17 +02:00
Máté Bartus
8a746b457d Merge pull request #6216 from marc1706/ticket/16570
[ticket/16570] Support continuing update on manually merging files
2021-05-22 08:23:26 +02:00
Marc Alexander
0502b9cc22 [ticket/16570] Support continuing update on manually merging files
PHPBB3-16570
2021-05-21 22:19:47 +02:00
Marc Alexander
6a0b1333da [ticket/16138] Resolve misc coding style issues
PHPBB3-16138
2021-05-19 22:11:01 +02:00
Marc Alexander
d05abc0807 [ticket/16138] Fix typo in visibility_reapprove_test
PHPBB3-16138
2021-05-19 22:05:08 +02:00
v12mike
b734fed853 [ticket/16138] Eliminate redundant parameters from board URLs
Revert mcp change to fix some moderator functions
such as selecting topic for move posts

PHPBB3-16138
2021-05-19 22:05:08 +02:00
Marc Alexander
67f80c7942 [ticket/16138] Make comment more objective
PHPBB3-16138
2021-05-19 22:05:07 +02:00
v12mike
bb24d619d2 [ticket/16138] Eliminate redundant parameters from board URLs
Fix whitespace

PHPBB3-16138
2021-05-19 22:05:07 +02:00
v12mike
62f59fa59d [ticket/16138] Eliminate redundant parameters from board URLs
Minor fixes after review

PHPBB3-16138
2021-05-19 22:05:07 +02:00
v12mike
adacf21edb [ticket/16138] Eliminate redundant parameters from board URLs
Rebase to 3.3.x

PHPBB3-16138
2021-05-19 22:05:06 +02:00
Marc Alexander
314ab17edd Merge pull request #6210 from 3D-I/ticket/16772
[ticket/16772] Fix Emoji for Email signature
2021-05-19 21:49:14 +02:00
Marc Alexander
49974a169b Merge pull request #6209 from rxu/ticket/16771
[ticket/16771] Add MCP core events
2021-05-16 21:07:04 +02:00
Marc Alexander
3bb58556ea [ticket/16771] Fix typo and invalid type in event docblocks
PHPBB3-16771
2021-05-15 22:49:28 +02:00
Marc Alexander
98713a7cbe Merge pull request #5505 from toxyy/ticket/15925
[ticket/15925] Add core events for sync and mcp functions
2021-05-15 22:38:04 +02:00
Marc Alexander
43e503e0ee Merge pull request #6211 from AlfredoRamos/ticket/16773
[ticket/16773] Add missing constraints in PostgreSQL backups
2021-05-15 22:31:16 +02:00
Alfredo Ramos
37518342c6 [ticket/16773] Add missing constraints in PostgreSQL backups
PHPBB3-16773
2021-05-08 01:12:46 -05:00
3D-I
81d582a2d2 [ticket/16772] Fix Emoji for Email signature
PHPBB3-16772
2021-05-08 04:49:20 +02:00
toxyy
bcea34ee7c [ticket/15925] Update events for 3.3.5-RC1
PHPBB3-15925
2021-05-07 19:25:35 -04:00
rxu
3ff99a9eb1 [ticket/16771] Add MCP core events
PHPBB3-16771
2021-05-07 22:30:50 +07:00
Marc Alexander
20fbe0e254 Merge pull request #6208 from Noxwizard/ticket/16292
[ticket/16292] Propagate more errors to the installer UI
2021-05-05 20:14:39 +02:00
Patrick Webster
e22f431660 [ticket/16292] Check that the installer container is available
PHPBB3-16292
2021-05-03 17:29:52 -05:00
Marc Alexander
9c8f2007d9 [ticket/13700] Add docblock and clean up code
PHPBB3-13700
2021-05-03 20:03:53 +02:00
Patrick Webster
62a45d86ec [ticket/16292] Try to propagate serious errors to the installer UI
Only raise a runtime exception during install/update as a last resort.

PHPBB3-16292
2021-05-02 16:29:31 -05:00
Marc Alexander
3e0b20820a Merge pull request #6199 from Noxwizard/ticket/16765
[ticket/16765] Check if ACP_CONTACT_SETTINGS module already installed
2021-05-02 20:44:53 +02:00
Marc Alexander
2dc8e61a72 Merge pull request #6204 from marc1706/ticket/16770
[ticket/16770] Rearrange static qualifier in 3.3.4 migration
2021-05-02 20:41:28 +02:00
Marc Alexander
47321954b7 [ticket/16770] Rearrange static qualifier in 3.3.4 migration
PHPBB3-16770
2021-05-02 15:42:04 +02:00
Marc Alexander
ecc79ea2ec Merge branch 'prep-release-3.3.4' into 3.3.x 2021-05-01 21:51:16 +02:00
Marc Alexander
710740d6be Merge pull request #6202 from marc1706/ticket/16769
[ticket/16769] Update composer & dependencies to latest versions
2021-05-01 13:34:06 +02:00
Marc Alexander
de3c0f274c [ticket/16769] Update composer dependencies to latest versions
PHPBB3-16769
2021-04-29 20:40:43 +02:00
Marc Alexander
b215f13f04 [ticket/16769] Update composer to latest version
PHPBB3-16769
2021-04-29 20:40:03 +02:00
Marc Alexander
950d8b8a13 Merge pull request #6198 from Noxwizard/ticket/16766
[ticket/16766] Show long error messages during install/update
2021-04-29 20:30:55 +02:00
Patrick Webster
31fc85153e [ticket/16766] Restructure conditional
PHPBB3-16766
2021-04-27 18:00:08 -05:00
Marc Alexander
782b0758ef [prep-release-3.3.4] Update changelog for 3.3.4 2021-04-27 21:20:02 +02:00
Marc Alexander
21c5c5a336 [prep-release-3.3.4] Add migration for 3.3.4 2021-04-27 21:19:40 +02:00
Marc Alexander
f861f1fb9a [prep-release-3.3.4] Update version numbers to 3.3.4 2021-04-27 21:19:36 +02:00
Marc Alexander
7f79849146 Merge pull request #6189 from 3D-I/ticket/16757
[ticket/16757] Properly handle RTL text in ACP QA Captcha HTML
2021-04-27 20:09:48 +02:00
Marc Alexander
db9f54bee5 Merge pull request #6200 from Noxwizard/ticket/16767
[ticket/16767] Report missing migration instead of dependency
2021-04-26 22:05:50 +02:00
Patrick Webster
134482f6c2 [ticket/16767] Report missing migration instead of dependency
If a migration has an unfulfillable dependency, the migration causing the
dependency to be unfulfillable is now shown in the error message instead
of just the dependency.

PHPBB3-16767
2021-04-25 15:22:42 -05:00
Patrick Webster
9051b28e14 [ticket/16765] Check if ACP_CONTACT_SETTINGS module already installed
Checks to see if the ACP_CONTACT_SETTINGS module is already installed prior to
running migration.

PHPBB3-16765
2021-04-24 13:02:07 -05:00
Patrick Webster
1f76aa65f3 [ticket/16766] Show long error messages during install/update
PHPBB3-16766
2021-04-24 12:39:27 -05:00
Máté Bartus
a641a992f6 Merge pull request #6195 from williamdes/16754-5.4.1
[ticket/16754] Update Doctum to 5.4.1
2021-04-22 08:56:24 +02:00
William Desportes
8c334f0c10 [ticket/16754] Update Doctum to 5.4.1
PHPBB3-16754
2021-04-22 02:03:21 +02:00
3D-I
ecd7b14171 [ticket/16757] Properly handle RTL text in ACP QA Captcha HTML
Twig version

PHPBB3-16757
2021-04-14 23:23:30 +02:00
3D-I
65a1ed0f82 [ticket/16757] Properly handle RTL text in ACP QA Captcha HTML
Remove double newline

PHPBB3-16757
2021-04-14 23:12:08 +02:00
3D-I
f6a8981028 [ticket/16757] Properly handle RTL text in ACP QA Captcha HTML
PHPBB3-16757
2021-04-14 23:03:59 +02:00
Marc Alexander
bd1033be68 Merge pull request #6188 from CHItA/ticket/16754
[ticket/16754] Update doctum.phar to 5.4
2021-04-10 23:01:30 +02:00
Máté Bartus
6eb357b421 [ticket/16754] Fix docblocks
PHPBB3-16754
2021-04-10 10:36:01 +02:00
Máté Bartus
1482efc927 [ticket/16754] Update doctum.phar to 5.4
PHPBB3-16754
2021-04-10 09:45:15 +02:00
Marc Alexander
908245686e Merge pull request #6186 from marc1706/ticket/16752
[ticket/16752] Add exporter for event into to restructured text
2021-04-09 17:29:14 +02:00
Marc Alexander
70337e99fa [ticket/16752] Add deprecation notices and fix tests
PHPBB3-16752
2021-04-08 21:18:35 +02:00
Marc Alexander
1ecc2e042b [ticket/16752] Add methods for exporting events to rst by script
PHPBB3-16752
2021-04-08 20:14:18 +02:00
Marc Alexander
bcc75099ab [ticket/16752] Add first version of exporter to restructured text (rst)
PHPBB3-16752
2021-04-07 22:20:23 +02:00
Marc Alexander
2c66f69c51 Merge pull request #6184 from rxu/ticket/16749
[ticket/16749] Explicitly set default MySQLi error mode
2021-04-05 21:39:49 +02:00
Marc Alexander
e1a6ed45bb Merge pull request #6167 from 3D-I/ticket/16719
[ticket/16719] Fix PHP notice/warnings on update/install - PHP 8
2021-04-04 16:54:41 +02:00
rxu
3d5639a844 [ticket/16749] Explicitly set default MySQLi error mode
PHPBB3-16749
2021-04-04 17:11:59 +07:00
Marc Alexander
705cc6ee6b Merge pull request #6182 from marc1706/ticket/16748
[ticket/16748] Adjust coding guidelines to put static after visibility
2021-04-04 10:00:54 +02:00
Marc Alexander
808be852c4 Merge pull request #6181 from Crizz0/ticket/16747
[ticket/16747] Fix typo in post_in_queue.txt email template
2021-04-04 09:29:38 +02:00
Marc Alexander
95496ebd38 [ticket/16748] Adjust coding guidelines to put static after visibility
PHPBB3-16748
2021-04-03 22:41:58 +02:00
Marc Alexander
574de287e7 [ticket/13700] Add method for initializing config after cache purge
PHPBB3-13700
2021-04-03 22:31:51 +02:00
Christian Schnegelberger
e79afc6293 [ticket/16747] post_in_queue.txt change aprroval to approval
PHPBB3-16747
2021-04-03 13:02:14 +02:00
3D-I
8e5be03fe9 [ticket/16719] Fix PHP notice/warning on update
PHPBB3-16719
2021-04-02 10:01:08 +02:00
3D-I
b6f4f30015 [ticket/16719] Fix PHP notice/warning on update
PHPBB3-16719
2021-04-02 10:01:08 +02:00
3D-I
222c7cd74b [ticket/16719] Fix PHP notice/warning on update
PHPBB3-16719
2021-04-02 10:01:07 +02:00
Marc Alexander
2d0e727f33 Merge pull request #6176 from marc1706/ticket/16740
[ticket/16740] Add method for ensuring resource is not passed to cache
2021-04-01 10:32:50 +02:00
Marc Alexander
4ce8224c2c [ticket/16740] Use is_resource() to check whether connect id is still valid
PHPBB3-16740
2021-03-31 21:22:14 +02:00
Marc Alexander
9d2fae3285 Merge pull request #6169 from 3D-I/ticket/16735
[ticket/16735] Fix access array offset on value of type bool on login
2021-03-31 07:40:00 +02:00
Marc Alexander
47f7a81b41 Merge pull request #6177 from 3D-I/ticket/16743
[ticket/16743] Properly check if TMP file exists - PHP 8
2021-03-30 20:07:42 +02:00
3D-I
e49a6e06a8 [ticket/16743] Properly check if TMP file exists - PHP 8
PHPBB3-16743
2021-03-29 22:05:53 +02:00
Marc Alexander
4d5db19feb Merge pull request #6175 from marc1706/ticket/16675
[ticket/16675] Use github base branch head rev for commit message check
2021-03-29 22:04:22 +02:00
Marc Alexander
e8afa29013 [ticket/16740] Implement sql_table_exists for psql w/out debug spam
Failed pg_query() results in PHP notices now ...

PHPBB3-16740
2021-03-28 11:40:23 +02:00
Marc Alexander
1e6ed3f0f5 [ticket/16740] Disable PHP 8.1 tests
PHPBB3-16740
2021-03-28 09:59:36 +02:00
Marc Alexander
c99bfe116f [ticket/16740] Improve open queries handling & do not close freed connection
PHPBB3-16740
2021-03-28 09:52:55 +02:00
Marc Alexander
03824189e4 [ticket/16740] Add more postgres tests to github actions
PHPBB3-16740
2021-03-26 22:56:57 +01:00
Marc Alexander
645e662b11 [ticket/16740] Add method for ensuring resource is not passed to cache
PHPBB3-16740
2021-03-26 22:54:19 +01:00
Marc Alexander
1d22f001e6 Merge pull request #6174 from Crizz0/ticket/16739
[ticket/16739] Replaces TOPIC_TITLE by SUBCJECT in short/report_pm.txt
2021-03-26 21:58:53 +01:00
Marc Alexander
718d2dc77e [ticket/16675] Use github base branch head rev for commit message check
PHPBB3-16675
2021-03-26 21:53:47 +01:00
Christian Schnegelberger
92425fcb46 [ticket/16739] Replaces TOPIC_TITLE by SUBCJECT in short/report_pm.txt
PHPBB3-16739
2021-03-26 18:30:13 +01:00
Marc Alexander
7d48254cc9 Merge pull request #6163 from marc1706/ticket/16730
[ticket/16730] Don't do additional sorting or output without any tickets
2021-03-24 21:31:22 +01:00
3D-I
c4efe5d0fa [ticket/16735] Fix access array offset on value of type bool on login
properly check if is an array first

PHPBB3-16735
2021-03-23 23:58:13 +01:00
Máté Bartus
50a917ab4c Merge pull request #6170 from marc1706/ticket/16736
[ticket/16736] Add sniffer for visibilitiy qualifiers before static keyword
2021-03-23 23:44:44 +01:00
3D-I
736b619294 [ticket/16735] Fix access array offset on value of type bool on login
Remove redundant type casting

PHPBB3-16735
2021-03-23 22:18:05 +01:00
Marc Alexander
a8ffd339fe [ticket/16736] Fix invalid placement of visibility qualifiers next to static
PHPBB3-16736
2021-03-23 22:12:59 +01:00
Marc Alexander
0897d3e381 [ticket/16736] Add sniffer for visibilitiy qualifiers before static keyword
PHPBB3-16736
2021-03-23 22:09:05 +01:00
3D-I
5b84c51d81 [ticket/16735] Fix access array offset on value of type bool on login
PHPBB3-16735
2021-03-23 02:41:13 +01:00
3D-I
e0b4f3ff37 [ticket/16735] Fix access array offset on value of type bool on login
PHPBB3-16735
2021-03-23 02:02:28 +01:00
Marc Alexander
4721007c02 [ticket/16730] Don't do additional sorting or output without any tickets
PHPBB3-16730
2021-03-17 21:36:53 +01:00
Marc Alexander
f6b4031a96 Merge pull request #6162 from marc1706/ticket/16707
[ticket/16707] Disable unstable PHP 8.1 builds
2021-03-17 20:21:01 +01:00
Marc Alexander
39d89c8dbc [ticket/16707] Disable unstable PHP 8.1 builds
PHP 8.1 builds keep failing. Don't use them until there is a release.

PHPBB3-16707
2021-03-17 17:50:01 +01:00
Marc Alexander
8f2d84f4dc [3.3.x] Update versions to 3.3.5-dev 2021-03-16 20:16:25 +01:00
Marc Alexander
fe49e110bd Merge branch 'prep-release-3.3.4' into 3.3.x 2021-03-16 20:14:33 +01:00
Marc Alexander
6d46c08191 [prep-release-3.3.4] Update changelog for 3.3.4-RC1 2021-03-15 21:48:18 +01:00
Marc Alexander
95bbebeb22 [prep-release-3.3.4] Add migration for 3.3.4-RC1 2021-03-15 21:47:35 +01:00
Marc Alexander
e3752b70e2 [prep-release-3.3.4] Update version numbers to 3.3.4 2021-03-15 21:47:29 +01:00
Marc Alexander
b45bd3ace7 [prep-release-3.3.4] Update version numbers to 3.3.4-RC1 2021-03-15 21:47:29 +01:00
Marc Alexander
8d5a624c8d Merge pull request #6160 from marc1706/ticket/16726
[ticket/16726] Update composer & vendor packages to latest versions
2021-03-15 20:15:53 +01:00
Marc Alexander
29a3b6c792 Merge pull request #6161 from Dark1z/ticket/16728
[ticket/16728] Add search result template event
2021-03-15 20:03:20 +01:00
Dark❶
78679ed001 [ticket/16728] Add search result template event
PHPBB3-16728
2021-03-15 23:29:08 +05:30
Marc Alexander
2919b147d8 [ticket/16726] Update vendor packages to latest versions
PHPBB3-16726
2021-03-14 21:25:24 +01:00
Marc Alexander
f514c5eafb [ticket/16726] Update composer to 2.0.11
PHPBB3-16726
2021-03-14 21:24:52 +01:00
Marc Alexander
2d1ce7dc24 Merge pull request #6159 from Dark1z/ticket/16725
[ticket/16725] Add MCP core event
2021-03-14 17:05:16 +01:00
Marc Alexander
026a143e42 Merge pull request #6158 from Dark1z/ticket/16724
[ticket/16724] Add some template events
2021-03-14 09:09:01 +01:00
Dark❶
9417c1803e [ticket/16724] Add some template events
PHPBB3-16724
2021-03-13 22:21:32 +05:30
Dark❶
6ebd64521b [ticket/16725] Add MCP core event
PHPBB3-16725
2021-03-13 17:40:10 +05:30
Dark❶
b3edc0884f [ticket/16724] Add some template events
PHPBB3-16724
2021-03-13 16:34:23 +05:30
Marc Alexander
48ce6a9a68 Merge pull request #6155 from marc1706/ticket/16655
[ticket/16655] Add support for custom error message when exceeding attempts
2021-03-09 19:58:15 +01:00
Marc Alexander
bf5f0bb8f7 [ticket/16655] Add support for custom error message when exceeding attempts
PHPBB3-16655
2021-03-07 12:03:49 +01:00
Marc Alexander
b978fd9dc6 Merge pull request #6141 from 3D-I/ticket/16705
[ticket/16705] Fix check_disk_space function - PHP 8
2021-03-05 20:52:38 +01:00
Marc Alexander
ae7f38331d Merge pull request #6154 from rxu/ticket/16719
[ticket/16719] Fix PHP notice/warning on installation
2021-03-05 20:50:43 +01:00
rxu
3a21109f89 [ticket/16719] Fix PHP notice/warning on installation
PHPBB3-16719
2021-03-05 20:23:28 +07:00
3D-I
5d18ad678b [ticket/16705] Fix check_disk_space function
Allow upload even if the check fails

PHPBB3-16705
2021-03-05 08:04:03 +01:00
3D-I
2ea22ee387 [ticket/16705] Fix check_disk_space function
Silent potential warnings

PHPBB3-16705
2021-03-05 08:00:55 +01:00
Marc Alexander
37c7e0a6d0 Merge pull request #6150 from marc1706/ticket/15392
[ticket/15392] Changed dirname(__FILE__) to __DIR__
2021-03-05 07:41:08 +01:00
Marc Alexander
22f7f491c5 [ticket/15925] Update events for 3.3.4-RC1
PHPBB3-15925
2021-03-04 17:14:56 +01:00
Marc Alexander
60d6727974 [ticket/15925] Update events for 3.3.3-RC1
PHPBB3-15925
2021-03-04 17:12:26 +01:00
Alec
86bbd05608 [ticket/15925] Add core.update_post_info_modify_sql
Add event to modify the sql to allow for more columns to be updated during sync
Same as sync events but only ran for last posts, slightly different formatting

PHPBB3-15925
2021-03-04 17:12:26 +01:00
Alec
516d0f5b27 [ticket/15925] Add core.update_post_info_modify_posts_sql
Add core event to modify the last posts' data retrieved to update forums' data
Also add $phpbb_dispatcher to sync globals to allow function use

PHPBB3-15925
2021-03-04 17:12:25 +01:00
Alec
40d825d1c6 [ticket/15925] Add core.sync_modify_topic_data
Allow modification of topic_data when syncing topics
Another event has been added to modify the contents of $row
This means that topic_data can be populated with anything added to that query

PHPBB3-15925
2021-03-04 17:12:25 +01:00
Alec
9ff92f2c36 [ticket/15925] Add core.sync_topic_last_post_info_sql
Add event to get more post or user data when syncing
Topic_data is updated with the data from this query, so it needs to be accessed
Custom_fieldnames is merged with fieldnames later, unlike the other event
This keeps the integrity of the core's code

PHPBB3-15925
2021-03-04 17:12:25 +01:00
Alec
740b2ffbf2 [ticket/15925] Add core.sync_modify_forum_data
Allow fieldnames and forum_data to be updated before synced with the database
Used in conjunction with post_info to pull that data

PHPBB3-15925
2021-03-04 17:12:24 +01:00
Alec
6728497434 [ticket/15925] Add core.sync_forum_last_post_info_sql
Add core event to modify the last posts' data retrieved to update forums' data
Also add $phpbb_dispatcher to sync globals to allow function use

PHPBB3-15925
2021-03-04 17:12:24 +01:00
Alec
9d2ab88c69 [ticket/15925] Add core.mcp_main_modify_fork_post_sql
Modify the forked post's sql array before it's inserted into the database
Lets additional variables be added into the sql_ary
Allows the same edits as mcp_main_fork_sql_after but for posts not topics

PHPBB3-15925
2021-03-04 17:12:24 +01:00
Marc Alexander
7a310cc7d9 [ticket/15392] Replace remaining dirname(__FILE__) with __DIR__
PHPBB3-15392
2021-03-04 16:56:07 +01:00
DinHere
20d4a86016 [ticket/15392] Resolve incorrect replacements after code review
PHPBB3-15392
2021-03-04 16:55:54 +01:00
DinHere
f3d3b493f7 [ticket/15392] Removed realpath only where needed
PHPBB3-15392
2021-03-04 16:54:19 +01:00
DinHere
448b6a7d49 [ticket/15392] Remove not needed realpath()
PHPBB3-15392
2021-03-04 16:53:41 +01:00
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
Marc Alexander
e4fc9bb0b1 [ticket/16705] Correctly assign phpBB root path in tests
PHPBB3-16705
2021-03-02 19:55:02 +01:00
Marc Alexander
66cbf2607b Merge pull request #6148 from rxu/ticket/16711
[ticket/16711] Fix PHP 8.1 builds
2021-03-02 19:49:56 +01:00
Marc Alexander
2a90ce1935 Merge pull request #6149 from 3D-I/ticket/16712
[ticket/16712] Implement thumbnails for WEBP images in attachments
2021-03-01 21:20:58 +01:00
3D-I
b06746460e [ticket/16712] Implement thumbnails for WEBP images in attachments
Use short array syntax

PHPBB3-16712
2021-02-27 22:10:02 +01:00
3D-I
374a3a2005 [ticket/16712] Implement thumbnails for WEBP images in attachments
PHPBB3-16712
2021-02-27 21:59:57 +01:00
3D-I
84453ed957 [ticket/16712] Implement thumbnails for WEBP images in attachments
PHPBB3-16712
2021-02-27 20:05:09 +01:00
3D-I
8f21a055ad [ticket/16712] Implement thumbnails for WEBP images in attachments
PHPBB3-16712
2021-02-27 19:54:44 +01:00
Marc Alexander
ed2f948bf5 Merge pull request #6147 from 3D-I/ticket/16710
[ticket/16710] Allow WEBP images in attachments
2021-02-27 16:31:30 +01:00
Marc Alexander
5424cbd7f9 Merge pull request #6146 from Crizz0/ticket/16709
[ticket/16709] Update s9e/text-formatter 2.8.1 => 2.8.3
2021-02-27 16:21:38 +01:00
rxu
4ce2643bdb [ticket/16711] Fix PHP 8.1 builds
PHPBB3-16711
2021-02-27 22:00:53 +07:00
3D-I
b5d1573acd [ticket/16710] Allow WEBP images in attachments
Update the array syntax in the function itself

PHPBB3-16710
2021-02-27 15:28:48 +01:00
3D-I
784f0d5f3b [ticket/16710] Allow WEBP images in attachments
PHPBB3-16710
2021-02-27 04:29:43 +01:00
Christian Schnegelberger
c492b51b54 [ticket/16709] Update s9e/text-formatter 2.8.1 => 2.8.3
PHPBB3-16709
2021-02-26 10:48:46 +01:00
Marc Alexander
bd1c3c87b7 Merge pull request #6059 from Crizz0/ticket/16589
[ticket/16589] Shortens subject and email content
2021-02-18 22:04:24 +01:00
Marc Alexander
71e8f68102 Merge pull request #6142 from 3D-I/ticket/16706
[ticket/16706] Fix undefined array keys on user IP ban
2021-02-18 21:14:15 +01:00
Christian Schnegelberger
76e1a46512 [ticket/16589] Replace personal message with private message
PHPBB3-16589
2021-02-18 21:04:05 +01:00
Marc Alexander
8467a95127 Merge pull request #6138 from 3D-I/ticket/16698
[ticket/16698] Enhance check for default charset
2021-02-18 21:01:39 +01:00
Marc Alexander
ae8aee0e60 Merge pull request #6143 from marc1706/ticket/16707
[ticket/16707] Disable unstable PHP 8.1 builds
2021-02-16 21:52:26 +01:00
Marc Alexander
b25fbc73d9 [ticket/16707] Disable unstable PHP 8.1 builds
PHPBB3-16707
2021-02-16 20:33:12 +01:00
3D-I
c499025623 [ticket/16706] Fix undefined array keys on user IP ban
PHPBB3-16706
2021-02-16 01:43:49 +01:00
3D-I
91a5a73dca [ticket/16705] Fix check_disk_space function
PHPBB3-16705
2021-02-09 23:44:18 +01:00
3D-I
9f316bd255 [ticket/16698] Enhance check for default charset
PHPBB3-16698
2021-02-09 20:54:50 +01:00
Marc Alexander
0daf4b6b1c Merge pull request #6139 from marc1706/ticket/16620
[ticket/16620] Output short array syntax in dev:migration-tips
2021-02-07 23:47:41 +01:00
Marc Alexander
3ab6059b56 [ticket/16620] Output short array syntax in dev:migration-tips
PHPBB3-16620
2021-02-07 21:14:21 +01:00
Christian Schnegelberger
8e599e23a0 [ticket/16589] Remove "or click unsubscribe ... link" sentence
PHPBB3-16589
2021-02-06 18:01:21 +01:00
3D-I
ecf6acd730 [ticket/16698] Enhance check for default charset
PHPBB3-16698
2021-02-06 04:44:57 +01:00
Marc Alexander
bb8768b604 Merge pull request #6135 from 3D-I/ticket/16696
[ticket/16696] Fix unsupported operand types in viewforum - PHP8
2021-02-05 22:17:45 +01:00
Máté Bartus
1ee1dbb629 Merge pull request #6137 from marc1706/ticket/16697
[ticket/16697] Remove $CP$ prefix when updating hashes and support phpBB2 check
2021-02-05 18:03:08 +01:00
Marc Alexander
7d37b650a4 [ticket/16697] Remove $CP$ prefix when updating hashes and support phpBB2 check
The $CP$ prefix is not part of the actual password hash.
phpBB2 passwords converted do currently include a phpass hash of the md5 of
the password. Make sure these are correctly checked.

PHPBB3-16697
2021-02-04 21:20:50 +01:00
3D-I
6c15f72371 [ticket/16696] Unsupported operand types in viewforum.php - PHP8
PHPBB3-16696
2021-02-02 21:20:22 +01:00
Christian Schnegelberger
552587dbb2 [ticket/16589] Visit at => visit to
PHPBB3-16589
2021-01-31 14:07:16 +01:00
Marc Alexander
0602fa2316 Merge branch 'prep-release-3.3.3' into 3.3.x 2021-01-29 20:15:16 +01:00
Máté Bartus
9cc910cb34 Merge pull request #6128 from 3D-I/ticket/16689
[ticket/16689] Fix SQL errors for Bitly OAuth
2021-01-26 18:42:02 +01:00
Marc Alexander
61fa45e5de [prep-release-3.3.3] Add migration for 3.3.3 2021-01-25 22:07:36 +01:00
Marc Alexander
9cf8bd25cb [prep-release-3.3.3] Update version numbers to 3.3.3 2021-01-25 22:05:42 +01:00
Marc Alexander
fc89dfff9e Merge pull request #6133 from 3D-I/ticket/16691
[ticket/16691] Fix illegal offset for report_pm_closed notification
2021-01-25 21:02:15 +01:00
3D-I
84c43093b1 [ticket/16691] Fix illegal offset for report_pm_closed notification
PHPBB3-16691
2021-01-25 18:23:49 +01:00
Máté Bartus
c2b0533fb8 Merge pull request #6129 from rxu/ticket/16690
[ticket/16690] Fix htmlspecialchars and htmlspecialchars_decode default flag
2021-01-22 19:14:13 +01:00
rxu
513e62f61d [ticket/16690] Fix html functions default flag in convertor
PHPBB3-16690
2021-01-21 21:44:48 +07:00
rxu
2fd4dbb685 [ticket/16690] Fix htmlspecialchars and htmlspecialchars_decode default flag
PHPBB3-16690
2021-01-20 00:21:24 +07:00
3D-I
6f183a831c [ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
2021-01-19 15:29:12 +01:00
3D-I
c543400955 [ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
2021-01-19 15:27:04 +01:00
3D-I
2c4b862648 [ticket/16689] Fix SQL errors for Bitly OAuth
PHPBB3-16689
2021-01-19 15:15:58 +01:00
Marc Alexander
ddf5de8349 Merge pull request #6125 from Crizz0/ticket/16660
[ticket/16660] Remove not needed RESET button from MCP and UCP
2021-01-18 20:25:15 +01:00
Marc Alexander
5b0d5d6b6e Merge pull request #6118 from iMattPro/ticket/16681
[ticket/16681] Use Font Icons for ACP Action Buttons
2021-01-16 21:09:06 +01:00
Christian Schnegelberger
8ceff6d039 [ticket/16660] Remove not needed RESET button fomr MCP and UCP
PHPBB3-16660
2021-01-16 18:35:57 +01:00
Marc Alexander
fb8ebe54f7 Merge pull request #6124 from CHItA/ticket/16675
[ticket/16675] Restore rxu's fix
2021-01-16 08:21:16 +01:00
Máté Bartus
859ce03462 [ticket/16675] Restore rxu's fix
PHPBB3-16675
2021-01-16 00:21:50 +01:00
Matt Friedman
009efef3c9 [ticket/16681] CSS adjustment
PHPBB3-16681
2021-01-15 14:15:41 -08:00
Matt Friedman
ffbd1abd87 [ticket/16681] Remove inline styles
PHPBB3-16681
2021-01-15 14:15:41 -08:00
Matt Friedman
6e5cb747b0 [ticket/16681] Use Font Icons for ACP Action Buttons
PHPBB3-16681
2021-01-15 14:15:41 -08:00
Marc Alexander
b48d3328fe Merge pull request #6121 from 3D-I/ticket/16685
[ticket/16685] Fix SQL error in ACP for DB name if not correctly escaped
2021-01-15 23:10:44 +01:00
Marc Alexander
9da049748a Merge pull request #6122 from AlfredoRamos/ticket/16686
[ticket/16686] Simplify get_database_size() SQL query for PostgreSQL
2021-01-15 22:08:30 +01:00
Alfredo Ramos
63b7da3b60 [ticket/16686] Simplify get_database_size() SQL query for PostgreSQL
Reduce number of queries to get database size and add it to the cache
for 2 hours, like it is being done for other RDBMS.

PHPBB3-16686
2021-01-15 13:48:59 -06:00
Máté Bartus
72557dee52 Merge pull request #6120 from marc1706/ticket/16684
[ticket/16684] Trigger builds on release branches and tags
2021-01-15 20:36:00 +01:00
3D-I
2f2782ed1e [ticket/16685] Fix SQL error in ACP for DB name if not correctly escaped
PHPBB3-16685
2021-01-15 13:40:58 +01:00
Marc Alexander
7bc06c54c4 [ticket/16684] Trigger builds on release branches and tags
PHPBB3-16684
2021-01-14 22:24:17 +01:00
Marc Alexander
57e2a32d4c [3.3.x] Update version numbers to 3.3.4-dev 2021-01-14 17:12:07 +01:00
Marc Alexander
fa0c4ebab9 Merge branch 'prep-release-3.3.3' into 3.3.x 2021-01-14 17:10:23 +01:00
Marc Alexander
524156de78 [prep-release-3.3.3] Update CREDITS.txt 2021-01-13 20:45:52 +01:00
Marc Alexander
3865bf48ff [prep-release-3.3.3] Add changelog for 3.3.3-RC1 2021-01-11 21:28:42 +01:00
Marc Alexander
89b215f681 [prep-release-3.3.3] Add migration for 3.3.3-RC1 2021-01-11 21:24:19 +01:00
Marc Alexander
f315d887bb [prep-release-3.3.3] Update stylesheet query strings 2021-01-11 21:23:08 +01:00
Marc Alexander
3d162e88c3 [prep-release-3.3.3] Update version numbers to 3.3.3 2021-01-11 21:22:23 +01:00
Marc Alexander
7d3ff8c7f2 [prep-release-3.3.3] Update version numbers to 3.3.3-RC1 2021-01-11 21:21:43 +01:00
Marc Alexander
e75a19c099 [prep-release-3.3.3] Upgrade composer dependencies to latest versions
Also removed the workaround for polyfill-intl-idn as patchwork/utf8 has been
fixed.
2021-01-11 21:19:01 +01:00
Marc Alexander
7925512bda [prep-release-3.3.3] Update composer to 2.0.8 2021-01-11 21:14:07 +01:00
Marc Alexander
b83538e4c5 Merge pull request #6116 from CHItA/ticket/16679
[ticket/16679] Respect "allow password reset" setting on login
2021-01-11 17:29:43 +01:00
Marc Alexander
d9dd8cfecf Merge pull request #6117 from rxu/ticket/16675-1
[ticket/16675] Adjust checking commit messages
2021-01-10 14:39:13 +01:00
rxu
0d45825016 [ticket/16675] Check commit messages on pull_request event only
PHPBB3-16675
2021-01-10 15:27:54 +07:00
rxu
f6c6b13fcb [ticket/16675] Adjust checking commit messages
Check commit messages on both 'push' and 'pull_request' events.

PHPBB3-16675
2021-01-10 12:54:42 +07:00
Marc Alexander
0171263d8e Merge pull request #6113 from marc1706/ticket/16666
[ticket/16666] Exclude PGDATA directory in Windows Defender
2021-01-07 20:32:30 +01:00
Máté Bartus
c76fef342d [ticket/16679] Hide password reset link if disabled on the index page
PHPBB3-16679
2021-01-07 19:40:39 +01:00
Billy Noah
2f245faee4 [ticket/16679] Respect "allow password reset" setting on login
PHPBB3-16679
2021-01-07 18:52:32 +01:00
Marc Alexander
9c39ad3ff4 [ticket/16666] Exclude PGDATA directory in Windows Defender
PHPBB3-16666
2021-01-06 17:40:13 +01:00
Marc Alexander
53d966cd64 Merge pull request #6093 from 3D-I/ticket/16656
[ticket/16656] Fix ACP check-in for mbstring http_input & output
2021-01-05 22:53:37 +01:00
Marc Alexander
bec46db5b9 Merge pull request #6110 from CHItA/ticket/16673
[ticket/16673] Update feed.xml.twig
2021-01-05 22:52:37 +01:00
Marc Alexander
3cddd9b58e Merge pull request #6111 from rxu/ticket/16675
[ticket/16675] Restore commit message checks
2021-01-05 22:38:36 +01:00
Marc Alexander
a757904e8f Merge pull request #6112 from CHItA/ticket/16678
[ticket/16678] Allow using traits
2021-01-05 22:12:21 +01:00
rxu
937305bc41 [ticket/16675] Restore commit message checks
PHPBB3-16675
2021-01-06 00:26:08 +07:00
Máté Bartus
7e1529c7df [ticket/16678] Allow using traits
PHPBB3-16678
2021-01-05 18:21:30 +01:00
Máté Bartus
82da2e133b Merge pull request #6106 from iMattPro/ticket/16674
[ticket/16674] Update text-formatter
2021-01-04 23:46:42 +01:00
teokolo
e7160c92f0 [ticket/16673] Update feed.xml.twig
removed whitespace causing feed to be refused by w3c atom validator
and google search console

PHPBB3-16673
2021-01-04 22:56:29 +01:00
Marc Alexander
cbc51bc8e8 Merge pull request #6109 from CHItA/ticket/16676
[ticket/16676] Cache composer dependencies for github actions
2021-01-04 22:21:39 +01:00
3D-I
6738076f72 [ticket/16656] Fix ACP check-in for mbstring http_input & output
PHPBB3-16656
2021-01-04 22:16:05 +01:00
Marc Alexander
8afcaaddab Merge pull request #6101 from 3D-I/ticket/16670
[ticket/16670] Fix ACP check-in for OAuth provider keys - PHP 8
2021-01-04 21:43:58 +01:00
Máté Bartus
a298411fa1 Merge pull request #6108 from kasimi/ticket/16677
[ticket/16677] Copy event listeners and element data when populating dropdown
2021-01-04 21:38:12 +01:00
Máté Bartus
e0967e89a7 [ticket/16676] Cache composer dependencies for github actions
PHPBB3-16676
2021-01-04 21:02:16 +01:00
kasimi
a0feca9711 [ticket/16677] Copy event listeners and element data when populating dropdown
PHPBB3-16677
2021-01-04 18:45:36 +01:00
Matt Friedman
c9a4f2a01a [ticket/16674] Update text-formatter
PHPBB3-16674
2021-01-03 12:44:31 -08:00
Marc Alexander
144dc69370 Merge pull request #6090 from 3D-I/ticket/16653
[ticket/16653] Fix Recaptcha-v3 default request method
2021-01-03 20:51:07 +01:00
Marc Alexander
5e52ada169 Merge pull request #6086 from rxu/ticket/16648
[ticket/16648] Fix possible Access to undeclared static property error in tests
2021-01-03 17:48:25 +01:00
Marc Alexander
2108029812 Merge pull request #6085 from rxu/ticket/16646
[ticket/16646] Fix PHP fatal error on installation
2021-01-03 17:46:18 +01:00
Marc Alexander
bcea90c896 Merge pull request #6084 from JoshyPHP/ticket/16645
[ticket/16645] Simplified text_reparser.poll_option
2021-01-03 17:43:03 +01:00
Máté Bartus
6e56b79e8a Merge pull request #6103 from CHItA/ticket/16671
Fix code sniffer bugs
2021-01-03 00:03:15 +01:00
JoshyPHP
be4afc49ff [ticket/16645] Simplified text_reparser.poll_option
PHPBB3-16645
2021-01-01 22:21:00 +01:00
Marc Alexander
dba60740f6 Merge pull request #6082 from 3D-I/ticket/16641
[ticket/16641] Fix config.php validation in ACP - PHP 8
2021-01-01 16:55:52 +01:00
Máté Bartus
0208dbf985 [ticket/16671] Allow importing functions through use statements
PHPBB3-16671
2021-01-01 11:46:23 +01:00
3D-I
2d548a026f [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-12-31 22:30:32 +01:00
3D-I
0bfb746991 Merge branch '3.3.x' into ticket/16641 2020-12-31 22:27:12 +01:00
Máté Bartus
fd8cb2a0e8 [ticket/16671] Allow using objects from the global namespace
PHPBB3-16671
2020-12-31 15:22:50 +01:00
Máté Bartus
b3e7c01ab6 [ticket/16671] Fix coding style
PHPBB3-166671
2020-12-31 14:50:28 +01:00
Máté Bartus
3d8f7ee33b [ticket/16671] Do not allow leading backslashes in use statements
PHPBB3-16671
2020-12-31 14:49:49 +01:00
Máté Bartus
8830354555 [ticket/16671] Fix coding style
PHPBB3-16671
2020-12-31 14:40:14 +01:00
Máté Bartus
cb894cee42 [ticket/16671] Match fully qualified names correctly
PHPBB3-16671
2020-12-31 14:39:11 +01:00
3D-I
8382b36823 [ticket/16670] Fix ACP check-in for OAuth provider keys - PHP 8
PHPBB3-16670
2020-12-31 10:20:24 +01:00
Marc Alexander
91e0e84387 Merge pull request #6097 from 3D-I/ticket/16665
[ticket/16665] Fix Emoji for strings in board settings + new event
2020-12-30 22:54:51 +01:00
3D-I
7ceb436021 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-12-30 03:02:31 +01:00
3D-I
2c2ee90d58 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-12-29 22:05:21 +01:00
3D-I
f95802c211 [ticket/16665] Fix Emoji for strings in board settings
PHPBB3-16665
2020-12-29 20:54:35 +01:00
Marc Alexander
e9851c14f8 Merge pull request #6098 from CHItA/ticket/16667
[ticket/16667] Remove unused installer task
2020-12-29 20:10:50 +01:00
Máté Bartus
94f9a5342a [ticket/16667] Remove unused installer task
PHPBB3-16667
2020-12-29 17:48:06 +01:00
Marc Alexander
63a0a6516c Merge pull request #6096 from marc1706/ticket/16661
[ticket/16661] Clean up github actions tasks after merge
2020-12-28 17:28:25 +01:00
Marc Alexander
9db70086dd [ticket/16661] Add test for phpBB on Windows
PHPBB3-16661
2020-12-27 19:37:38 +01:00
3D-I
c37e8ae8b9 [ticket/16665] Fix Emoji for strings in board settings
Add event

PHPBB3-16665
2020-12-24 05:27:43 +01:00
3D-I
d6427e777c [ticket/16665] Fix Emoji for strings in board settings
PHPBB3-16665
2020-12-24 00:06:44 +01:00
Marc Alexander
3f97a557a6 Merge pull request #6083 from rxu/ticket/16582
[ticket/16582] Fix SQL error on registration with Numbers CPF with no default value set
2020-12-22 21:35:10 +01:00
Marc Alexander
dfbde48dcf Merge pull request #6081 from otseng/otseng/ticket/16640
[ticket/16640] Show MCP link in menu
2020-12-22 21:30:20 +01:00
Marc Alexander
e769ac7941 Merge pull request #6052 from rxu/ticket/16607
[ticket/16607] Update Oracle DBAL driver OCI8 aliases and functions
2020-12-22 21:25:47 +01:00
Marc Alexander
8992277ce8 [ticket/16661] Exclude extension .git directory in executable check
PHPBB3-16661
2020-12-22 21:17:24 +01:00
Marc Alexander
1b2819065a [ticket/16661] Remove Appveyor builds
PHPBB3-16661
2020-12-22 21:13:58 +01:00
Marc Alexander
97ddf7e008 [ticket/16661] Add check executable files for extensions
Also added some minor code adjustments.

PHPBB3-16661
2020-12-20 22:26:53 +01:00
Marc Alexander
f67e2b9fe0 [ticket/16661] Stop building on travis CI
PHPBB3-16661
2020-12-20 22:23:23 +01:00
Marc Alexander
23caeec1cf [ticket/16661] Add build badge and remove PR branch from builds
PHPBB3-16661
2020-12-20 22:23:07 +01:00
Marc Alexander
202a453282 Merge pull request #6095 from marc1706/ticket/16659
[ticket/16659] Use Github Actions for continuous integration
2020-12-20 21:29:32 +01:00
Marc Alexander
8013bb369a [ticket/16659] Build PR branch to show that CI is working
PHPBB3-16659
2020-12-19 21:43:36 +01:00
Marc Alexander
8536c437c4 [ticket/16659] Undo changes to travis folder
Github actions are using their own scripts etc.

PHPBB3-16659
2020-12-19 21:41:54 +01:00
Marc Alexander
9762cbf94f [ticket/16659] Remove test branch from build branches
PHPBB3-16659
2020-12-19 21:32:38 +01:00
Marc Alexander
a1b994a8cd [ticket/16659] Add scripts for ext preparation and sniffing
PHPBB3-16659
2020-12-19 21:30:36 +01:00
Marc Alexander
ef22a029b2 [ticket/16659] Split up tests for each database type
PHPBB3-16659
2020-12-19 21:30:27 +01:00
Marc Alexander
b3e3d9642e [ticket/16659] Add missing postgres test and improve naming
PHPBB3-16659
2020-12-19 21:30:16 +01:00
Marc Alexander
452f2cd086 [ticket/16659] Enable all items in build matrix
PHPBB3-16659
2020-12-19 21:30:06 +01:00
Marc Alexander
e0c5c0047d [ticket/16659] Enable notests tests with commit message check
PHPBB3-16659
2020-12-19 21:29:58 +01:00
Marc Alexander
2a1a22dffe [ticket/16659] Adjust slapd setup for apparmor configuration
PHPBB3-16659
2020-12-19 21:29:49 +01:00
Marc Alexander
67da9e0e85 [ticket/16659] Add setup script for LDAP
PHPBB3-16659
2020-12-19 21:29:39 +01:00
Marc Alexander
c2c2c3f62b [ticket/16659] Add commit message check
PHPBB3-16659
2020-12-19 21:29:29 +01:00
Marc Alexander
bff3c7c7af [ticket/16659] Add slow tests
PHPBB3-16659
2020-12-19 21:29:20 +01:00
Marc Alexander
e2f21b3dd3 [ticket/16659] Use matrix db alias for MSSQL builds
PHPBB3-16659
2020-12-19 21:29:12 +01:00
Marc Alexander
6c9ecf1cc8 [ticket/16659] Add tests for MSSQL
PHPBB3-16659
2020-12-19 21:29:02 +01:00
Marc Alexander
4f282db6e2 [ticket/16659] Resolve issues with fulltext search in mariadb
PHPBB3-16659
2020-12-19 21:28:52 +01:00
Marc Alexander
d6e1989e1f [ticket/16659] First test run with all current tests
PHPBB3-16659
2020-12-19 21:28:43 +01:00
Marc Alexander
4729be9e96 [ticket/16659] Add builds for MySQL 8 and PHP 8.1
PHPBB3-16659
2020-12-19 21:28:34 +01:00
Marc Alexander
bb020c3e6b [ticket/16659] Make sure php-fpm is installed
PHPBB3-16659
2020-12-19 21:28:23 +01:00
Marc Alexander
c22cacf9bd [ticket/16659] Test with PHP 8
PHPBB3-16659
2020-12-19 21:28:14 +01:00
Marc Alexander
0907087ee3 [ticket/16659] Add steps for notests run
PHPBB3-16659
2020-12-19 21:28:04 +01:00
Marc Alexander
1e985dc4f0 [ticket/16659] Add PHP 8.0 and notests run
PHPBB3-16659
2020-12-19 21:27:52 +01:00
Marc Alexander
5b82ca23d3 [ticket/16659] Remove special definitions for mariadb setup
PHPBB3-16659
2020-12-19 21:27:40 +01:00
Marc Alexander
2cdebe57af [ticket/16659] Use volume for /var/run/mysqld
PHPBB3-16659
2020-12-19 21:26:39 +01:00
Marc Alexander
5cbe25d415 [ticket/16659] Enable mariadb tests
PHPBB3-16659
2020-12-19 21:26:15 +01:00
Marc Alexander
d764888393 [ticket/16659] Enable sqlite3 tests
PHPBB3-16659
2020-12-19 21:26:03 +01:00
Marc Alexander
1710a38ced [ticket/16659] Add postgres tests
PHPBB3-16659
2020-12-19 21:25:44 +01:00
Marc Alexander
ba75aa9d0c [ticket/16659] Limit tests to mysql for now
PHPBB3-16659
2020-12-19 21:25:07 +01:00
Marc Alexander
cbf98a2d7d [ticket/16659] Start setting up test workflow on github actions
PHPBB3-16659
2020-12-19 21:24:43 +01:00
3D-I
7210cb8e99 [ticket/16653] Fix Recaptcha-v3 default request method
PHPBB3-16653
2020-12-10 07:26:16 +01:00
rxu
ee3a3ef5fa [ticket/16648] Fix possible Access to undeclared static property error in tests
PHPBB3-16648
2020-12-05 15:19:45 +07:00
rxu
888bc86608 [ticket/16646] Fix PHP fatal error on installation
PHPBB3-16646
2020-12-01 15:32:22 +07:00
3D-I
b9b50a108b [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-28 18:28:26 +01:00
rxu
022b58f986 [ticket/16582] Fix SQL error on registration with Numbers CPF with no default
PHPBB3-16582
2020-11-28 19:01:25 +07:00
3D-I
557160f158 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-28 06:26:00 +01:00
3D-I
ea5028cf2a [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-28 05:39:15 +01:00
3D-I
4e8b104543 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-27 20:50:40 +01:00
3D-I
146d72468f [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-26 23:58:41 +01:00
3D-I
f711133580 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-26 23:51:54 +01:00
3D-I
cd42c0e306 [ticket/16641] Fix config.php validation in ACP - PHP 8
PHPBB3-16641
2020-11-26 23:45:22 +01:00
3D-I
c0511d54fd [ticket/16641] Fix CHMOD validation for config.php - PHP 8
PHPBB3-16641
2020-11-25 22:43:34 +01:00
Tseng, Oliver
ec3a2fa063 [ticket/16640] Show MCP link in menu
PHPBB3-16640
2020-11-23 23:35:10 -05:00
Marc Alexander
5a55891d06 Merge pull request #6080 from rxu/ticket/16178
[ticket/16178] Make container_builder use same cache directory as Container
2020-11-22 22:02:45 +01:00
Marc Alexander
f602f99b1a Merge pull request #6079 from rxu/ticket/16606
[ticket/16606] Add template events to ucp_pm_viewmessage.html
2020-11-22 21:44:56 +01:00
Marc Alexander
80708022e6 Merge pull request #6078 from rxu/ticket/16617
[ticket/16617] Add events to override message/PM BBCode status indications
2020-11-22 21:40:02 +01:00
rxu
01cb8b3a9b [ticket/16178] Fix test
PHPBB3-16178
2020-11-22 13:43:55 +07:00
Joshua Angnoe
c6fe6d49bc [ticket/16178] Make container_builder use same cache directory as Container
Both should be using the same core.cache_dir directory.

PHPBB3-16178
2020-11-22 12:03:05 +07:00
G-T-I
1d398ee2c3 [ticket/16606] Add template events to ucp_pm_viewmessage.html
PHPBB3-16606
2020-11-21 21:23:18 +07:00
rxu
812ba990ac [ticket/16617] Shorten event names
PHPBB3-16617
2020-11-21 13:33:04 +07:00
rxu
5d270319e5 [ticket/16617] Add events to override message/PM BBCode status indications
PHPBB3-16617
2020-11-21 12:56:57 +07:00
pasha
5d66d4c91f [ticket/16617] Events for posting/pm statuses
PHPBB3-16617
2020-11-21 12:56:52 +07:00
Marc Alexander
eefd3c0197 Merge pull request #5523 from toxyy/ticket/15951
[ticket/15951] Add core events to mcp
2020-11-20 22:49:46 +01:00
Marc Alexander
cdd9600c60 Merge pull request #6077 from rxu/ticket/16636
[ticket/16636] Add PHP 8.0 builds to TravisCI
2020-11-20 17:54:32 +01:00
Marc Alexander
9ff962e86d Merge pull request #6076 from 3D-I/ticket/16629
[ticket/16629] Fix ACP get_database_size() for MySql 8
2020-11-20 17:53:26 +01:00
rxu
5a5236760e [ticket/16636] Add PHP 8.0 builds to TravisCI
PHPBB3-16636
2020-11-20 21:14:34 +07:00
3D-I
62115f378a [ticket/16629] Fix ACP get_database_size() for MySql 8
PHPBB3-16629
2020-11-20 09:19:55 +01:00
Marc Alexander
d88dff51fb [ticket/15951] Adjust event docblock and update since version
PHPBB3-15951
2020-11-19 22:42:14 +01:00
Marc Alexander
3d1874adcc Merge pull request #6075 from marc1706/ticket/16633
[ticket/16633] Update pull request template to remove 3.2.x
2020-11-19 17:27:49 +01:00
Marc Alexander
5197883379 Merge pull request #6070 from 3D-I/ticket/16629
[ticket/16629] Fix ACP get_database_size() for MySql 8
2020-11-19 17:25:19 +01:00
3D-I
cd235dfd42 [ticket/16629] Fix ACP get_database_size() for MySql 8
PHPBB3-16629
2020-11-15 23:00:22 +01:00
Marc Alexander
67f1c63926 [ticket/16633] Update pull request template to remove 3.2.x
PHPBB3-16633
2020-11-15 21:18:58 +01:00
Marc Alexander
fb525f7cdc Merge pull request #6022 from rxu/ticket/16549
[3.3.x][ticket/16549] Use PHPUnit 9.3+ for PHP 8.0+ tests
2020-11-15 20:48:54 +01:00
rxu
f1c178b544 [ticket/16549] Rewrite at() calls
See https://github.com/sebastianbergmann/phpunit/issues/4297

PHPBB3-16549
2020-11-15 18:56:22 +07:00
rxu
eb754e3a84 [ticket/16549] Fix database testcase transactions handling, fix indentations
PHPBB3-16549
2020-11-15 00:27:58 +07:00
Marc Alexander
0fe7972d0d Merge pull request #6072 from marc1706/ticket/16632
[ticket/16632] Update to composer version 2
2020-11-14 11:56:32 +01:00
Marc Alexander
6d55fec093 [ticket/16632] Modify packge-version-deprecated version specifier
PHPBB3-16632
2020-11-13 22:30:33 +01:00
Marc Alexander
5a66012c6c [ticket/16632] Update to composer version 2
PHPBB3-16632
2020-11-13 22:20:25 +01:00
3D-I
3521d2e9fa [ticket/16629] Fix ACP get_database_size() for MySql 8
Add functional test (thanks rxu)

PHPBB3-16629
2020-11-12 08:18:05 +01:00
Marc Alexander
597f001e42 Merge pull request #6071 from JoshyPHP/ticket/16630
[ticket/16630] Restore clean_formatting()'s behaviour
2020-11-11 21:50:05 +01:00
JoshyPHP
8a8893fbd3 [ticket/16630] Restore clean_formatting()'s behaviour
PHPBB3-16630
2020-11-06 23:07:30 +01:00
Marc Alexander
39c3a6c3e5 Merge branch 'prep-release-3.3.2' into 3.3.x 2020-11-06 17:06:22 +01:00
3D-I
4b2c253427 [ticket/16629] Fix ACP get_database_size() for MySql 8
PHPBB3-16629
2020-11-05 05:08:09 +01:00
Marc Alexander
f98653d2c9 [prep-release-3.3.2] Add migration for 3.3.2 2020-11-04 22:11:34 +01:00
Marc Alexander
c521f1d6a7 [prep-release-3.3.2] Update version numbers for 3.3.2 2020-11-04 22:09:55 +01:00
Marc Alexander
17104fde04 Merge branch 'prep-release-3.2.11' into prep-release-3.3.2 2020-11-04 22:08:26 +01:00
Marc Alexander
2f14cc832c Merge branch '3.2.x' into 3.3.x 2020-11-04 22:05:11 +01:00
Marc Alexander
585728bc23 Merge branch 'prep-release-3.2.11' into 3.2.x 2020-11-04 22:00:12 +01:00
Marc Alexander
22c3b7edd6 [prep-release-3.2.11] Update changelog for 3.2.11 2020-11-04 20:00:56 +01:00
Marc Alexander
fa73b0b250 Merge pull request #63 from phpbb/ticket/security-265
[ticket/security-265] Reduce verbosity of jabber error return
2020-11-04 20:00:45 +01:00
Marc Alexander
d82715372b [ticket/security-265] Add better checks for empty or not set data
SECURITY-265
2020-11-04 16:36:53 +01:00
Marc Alexander
084675c4f3 [ticket/security-265] Reduce verbosity of jabber error return
SECURITY-265
2020-11-04 16:36:53 +01:00
Marc Alexander
0a6421939b [prep-release-3.2.11] Update changelog for 3.2.11 2020-11-04 16:35:34 +01:00
Marc Alexander
d5ca3dc132 [prep-release-3.2.11] Add migration for 3.2.11 2020-11-04 16:35:27 +01:00
Marc Alexander
adcbe0a2b1 [prep-release-3.2.11] Update versions for 3.2.11 2020-11-04 16:35:22 +01:00
Marc Alexander
556f7adab1 Merge pull request #62 from phpbb/ticket/security-264
[ticket/security-264] Ensure HTML entity state after removing formatting
2020-11-04 16:35:05 +01:00
3D-I
d3afd6ec68 [ticket/16629] Fix ACP get_database_size() for MySql 8
PHPBB3-16629
2020-11-02 17:42:23 +01:00
Marc Alexander
fe9f5e3386 Merge pull request #6069 from Noxwizard/ticket/16625
[ticket/16625] Add mbstring to install docs
2020-10-27 20:54:57 +01:00
Noxwizard
743d83ef71 [ticket/16625] Add mbstring to install docs
PHPBB3-16625
2020-10-26 21:03:39 +01:00
Marc Alexander
76c18255b6 Merge pull request #6014 from rxu/ticket/16538
[ticket/16538] Add MySQL 8 tests
2020-10-25 16:21:01 +01:00
Marc Alexander
a6b1c27a5d Merge pull request #6068 from marc1706/ticket/16619
[ticket/16619] Corrected spelling of non-existant
2020-10-25 10:33:50 +01:00
Marc Alexander
783cea8d52 Merge pull request #5291 from toxyy/ticket/15722
[ticket/15722] Allow forum topicrow pagination to use topicrow values
2020-10-24 17:31:16 +02:00
Mark D. Hamill
a7810bc279 [ticket/16619] Corrected spelling of non-existant
PHPBB3-16619
2020-10-24 15:06:35 +02:00
Marc Alexander
dd7a184926 [3.3.x] Update version numbers to 3.3.3-dev 2020-10-24 10:39:11 +02:00
Marc Alexander
7cbcf4351b Merge branch 'prep-release-3.3.2' into 3.3.x 2020-10-24 10:37:32 +02:00
Marc Alexander
3957161124 [ticket/security-264] Ensure HTML entity state after removing formatting
SECURITY-264
2020-10-23 20:38:51 +02:00
rxu
fe38280a1a [ticket/16549] Fix tests
1. If $service array is empty, $service[0] call will throw fatal error in PHP 8.
2. Division by zero was promoted to fatal error
and throws DivisionByZeroError exception in PHP 8+
3. Adjust make_clickable() logic to avoid 'Undefined array key 3' error.

PHPBB3-16549
2020-10-18 14:59:11 +07:00
rxu
fff200b1d8 [ticket/16549] Rename class phpbb_lint_test rather than the test file
PHPBB3-16549
2020-10-18 11:26:44 +07:00
rxu
cc753db132 [ticket/16549] Fix new tests
PHPBB3-16549
2020-10-18 10:37:17 +07:00
rxu
ec565de6cb [ticket/16549] Fix tests
PHPBB3-16549
2020-10-18 10:37:16 +07:00
rxu
fc631040fd [ticket/16549] Fix composer dependencies
PHPBB3-16549
2020-10-18 10:37:16 +07:00
rxu
615d5eaa77 [ticket/16549] Fix select auth method test
PHPBB3-16549
2020-10-18 10:36:43 +07:00
rxu
72c4c18364 [ticket/16549] Require stable versions as PHPUnit 9.3 has been released
PHPBB3-16549
2020-10-18 10:36:42 +07:00
rxu
4c4debf004 [ticket/16549] PHPUnit function declarations tiny cleanup
PHPBB3-16549
2020-10-18 10:36:42 +07:00
rxu
7323e4467b [ticket/16549] rename lint_test.php
As of PHPUnit 9.1, test filename should match test class name.

PHPBB3-16549
2020-10-18 10:36:41 +07:00
rxu
c954249dfa [ticket/16549] Avoid deprecated properties/methods in newer PHPUnit versions
PHPBB3-16549
2020-10-18 10:36:41 +07:00
rxu
f6a7fe168a [ticket/16549] update dependencies for nightly tests
PHPBB3-16549
2020-10-18 10:36:41 +07:00
rxu
659e1e4a26 [ticket/16549] Fix wrong exception message function names
PHPBB3-16549
2020-10-18 10:36:40 +07:00
rxu
632bcdd2da [ticket/16549] Remove exception expectation annotations
PHPBB3-16549
2020-10-18 10:36:40 +07:00
rxu
fb62d22013 [ticket/16549] Add void return type of template methods
PHPBB3-16549
2020-10-18 10:36:39 +07:00
rxu
58ea656fd8 [ticket/16549] Move from assert[Not]Contains to assertString[Not]ContainsString
PHPBB3-16549
2020-10-18 10:36:39 +07:00
Christian Schnegelberger
a951ca4489 [ticket/16589] Topic in to New topic in > newtopic_notify.txt
PHPBB3-16589
2020-10-08 14:11:02 +02:00
Christian Schnegelberger
21019fac66 [ticket/16589] Update titles and mail text
PHPBB3-16589
2020-10-05 19:43:48 +02:00
Christian Schnegelberger
03c6ed32fb [ticket/16589] Shorten the short/bookmark.txt mail template
PHPBB3-16589
2020-10-05 18:17:57 +02:00
Christian Schnegelberger
a55b96c9f6 [ticket/16589] Shortens subject and email content
PHPBB3-16589
2020-10-04 13:44:41 +02:00
rxu
46d0cf7bb4 [ticket/16607] Update Oracle DBAL driver OCI8 aliases and functions
PHPBB3-16607
2020-09-29 22:13:19 +07:00
rxu
0bc9d87891 [ticket/16538] Add identifiers quoting
If reserved word is used as identifier, it must be quoted.
If alias is used elsewhere in SQL statement, it must be quoted.

PHPBB3-16535
PHPBB3-16538
2020-08-14 04:51:11 +07:00
rxu
3bbe0f1d4e [ticket/16538] Move script execution to setip-phpbb.sh
PHPBB3-16538
2020-08-14 04:44:06 +07:00
rxu
55d9154b01 [ticket/16538] Add MySQL 8 tests
PHPBB3-16538
2020-08-14 04:43:55 +07:00
Alec
c903381154 [ticket/15951] Add requested changes
Revert changes with $topic_info
Add $quickmod to the event
Change since versions to latest

PHPBB3-15951
2020-08-11 08:08:17 -04:00
Toxyy
0ae8710132 [ticket/15722] Allow forum topicrow pagination to use topicrow values
Changes topicrow pagination to use values from topicrow

This allows pagination to reflect values from core.viewforum_modify_row

PHPBB3-15722
2020-08-11 07:46:59 -04:00
Alec
ebc4912ada [ticket/15951] Add core.mcp_modify_permissions
Allow non staff to access mcp functions
This event would allow normal users to delete topics, for example
If extensions need normal users to access this file they will need this event

PHPBB3-15951
2020-08-11 07:44:00 -04:00
Alec
663e611fae [ticket/15951] Add core.mcp_delete_topic_modify_hidden_fields
Allow modification of the hidden fields when deleting topics
This lets you control the permissions for permanently deleting topics
Template variables can also be modified at this point

PHPBB3-15951
2020-08-11 07:44:00 -04:00
Alec
f4a1d4ef02 [ticket/15951] Add core.mcp_delete_topic_modify_permissions
Allow modification to permissions when deleting topics
This allows $check_permission to be false in the phpbb_check_ids function call

PHPBB3-15951
2020-08-11 07:44:00 -04:00
735 changed files with 10409 additions and 4120 deletions

View File

@@ -1,144 +0,0 @@
build: false
clone_folder: c:\projects\phpbb
version: '{build}'
services:
- iis
environment:
COMPOSER_AUTH:
secure: '{"github-oauth": {"github.com": "zvq38wk7sRe87Y9W2OCYXcK7WKQDsig7GRIUDHGmxm6ZQRK8JswPbi8JoJQbFhM+"}}'
matrix:
- db: mssql
db_version: sql2012sp1
php: 7.1
- db: mssql
db_version: sql2014
php: 7.1
- db: mssql
db_version: sql2016
php: 7.2
# - db: mssql
# db_version: sql2017
# php: 7.1
# - db: mariadb
# php: 7.1
# - db: mysqli
# php: 7.1
# - db: sqlite
# php: 7.1
# - db: postgresql
# php: 7.1
hosts:
phpbb.test: 127.0.0.1
init:
- SET PATH=%systemroot%\system32\inetsrv\;C:\Program Files\OpenSSL;C:\tools\php;c:\php;%PATH%
- SET ANSICON=121x90 (121x90)
- REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Command Processor" /v DelayedExpansion /t REG_DWORD /d 1 /f
before_test:
- ps: |
Set-Service wuauserv -StartupType Manual
choco install chocolatey -y --version 0.10.13 --allow-downgrade
choco install php -y --version ((choco search php --exact --all-versions -r | select-string -pattern $env:php | sort { [version]($_ -split '\|' | select -last 1) } -Descending | Select-Object -first 1) -replace '[php|]','')
Get-ChildItem -Path "c:\tools\php$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1$2')" -Recurse |
Move-Item -destination "c:\tools\php"
cd c:\tools\php
cat php.ini-development | %{$_ -replace "memory_limit = 128M","memory_limit = 1024M"} | Out-File -Encoding "Default" php.ini
Add-Content php.ini "`n date.timezone=UTC"
Add-Content php.ini "`n display_errors=On"
Add-Content php.ini "`n extension_dir=ext"
Add-Content php.ini "`n extension=php_openssl.dll"
Add-Content php.ini "`n extension=php_mbstring.dll"
Add-Content php.ini "`n extension=php_curl.dll"
Add-Content php.ini "`n extension=php_gd2.dll"
Add-Content php.ini "`n extension=php_tidy.dll"
Add-Content php.ini "`n extension=php_fileinfo.dll"
Add-Content php.ini "`n extension=php_pdo_sqlite.dll"
Add-Content php.ini "`n extension=php_sqlite3.dll"
Add-Content php.ini "`n extension=php_pdo_mysql.dll"
Add-Content php.ini "`n extension=php_mysqli.dll"
Add-Content php.ini "`n extension=php_pdo_pgsql.dll"
Add-Content php.ini "`n extension=php_pgsql.dll"
# Get MSSQL driver
if ($env:db -eq "mssql") {
cd c:\tools\php\ext
$DLLVersion = "5.3.0"
$VCVersion = If ([System.Version]"$($env:php)" -ge [System.Version]"7.2") {"vc15"} Else {"vc14"}
curl -o php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/sqlsrv/$($:DLLVersion)/php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip
7z x -y php_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
curl -o php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip https://windows.php.net/downloads/pecl/releases/pdo_sqlsrv/$($DLLVersion)/php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-$($VCVersion)-x64.zip
7z x -y php_pdo_sqlsrv-$($DLLVersion)-$($env:php -replace '([0-9])[.]([0-9])[.]?([0-9]+)?','$1.$2')-nts-vc14-x64.zip > $null
Remove-Item c:\tools\php\* -include .zip
cd c:\tools\php
Add-Content php.ini "`nextension=php_sqlsrv.dll"
Add-Content php.ini "`nextension=php_pdo_sqlsrv.dll"
Add-Content php.ini "`n"
$instanceName = $env:db_version.ToUpper()
Start-Service "MSSQL`$$instanceName"
Set-Variable -Name "sqlServerPath" -Value "(local)\$($env:db_version.ToUpper())"
# Create database write test config
sqlcmd -S $sqlServerPath -Q "Use [master]; CREATE DATABASE [phpbb_test] COLLATE Latin1_General_CI_AS"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mssqlnative';`n`$dbhost = '.\\$env:db_version';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'sa';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "mysqli") {
Start-Service MySQL57
$env:MYSQL_PWD="Password12!"
$cmd = '"C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql" -e "create database phpbb_test;" --user=root'
iex "& $cmd"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mysqli';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'root';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "postgresql") {
Start-Service postgresql-x64-9.5
$env:PGUSER="postgres"
$env:PGPASSWORD="Password12!"
$Env:Path="C:\Program Files\PostgreSQL\9.6\bin\;$($Env:Path)"
createdb phpbb_test
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\postgres';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'postgres';`n`$dbpasswd = 'Password12!';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "mariadb") {
appveyor-retry choco install mariadb -y --force
$env:MYSQL_PWD=""
$cmd = '"C:\Program Files\MariaDB 10.2\bin\mysql" -e "create database phpbb_test;" --user=root'
iex "& $cmd"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\mysqli';`n`$dbhost = 'localhost';`n`$dbport = '';`n`$dbname = 'phpbb_test';`n`$dbuser = 'root';`n`$dbpasswd = '';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
elseif ($env:db -eq "sqlite") {
# install sqlite
appveyor-retry choco install sqlite -y
sqlite3 c:\projects\test.db "create table aTable(field1 int); drop table aTable;"
$data = "<?php`n`n`$dbms = 'phpbb\\db\\driver\\sqlite3';`n`$dbhost = 'c:\\projects\\test.db';`n`$dbport = '';`n`$dbname = '';`n`$dbuser = '';`n`$dbpasswd = '';`n`$phpbb_functional_url = 'http://phpbb.test/';"; $data | Out-File -Encoding "Default" "c:\\projects\\phpbb\\tests\\test_config.php"
}
- ps: |
cd c:\projects\phpbb\phpBB
(Get-Content c:\projects\phpbb\phpBB\web.config).replace("<configuration>", "<configuration>`n`t<system.web>`n`t`t<customErrors mode=`"Off`"/>`n`t</system.web>") | Set-Content c:\projects\phpbb\phpBB\web.config
(Get-Content c:\projects\phpbb\phpBB\web.config).replace("`t</system.webServer>", "`t`t<httpErrors errorMode=`"Detailed`" />`n`t</system.webServer>") | Set-Content c:\projects\phpbb\phpBB\web.config
- cd c:\projects\phpbb\phpBB
- php ..\composer.phar install
- choco install urlrewrite -y
- ps: New-WebSite -Name 'phpBBTest' -PhysicalPath 'c:\projects\phpbb\phpBB' -Force
- ps: Import-Module WebAdministration; Set-ItemProperty 'IIS:\Sites\phpBBTest' -name Bindings -value @{protocol='http';bindingInformation='*:80:phpbb.test'}
- echo Change default anonymous user AUTH to ApplicationPool
- appcmd set config -section:anonymousAuthentication /username:"" --password
- echo Setup FAST-CGI configuration
- appcmd set config /section:system.webServer/fastCGI /+[fullPath='C:\tools\php\php-cgi.exe']
- echo Setup FACT-CGI handler
- appcmd set config /section:system.webServer/handlers /+[name='PHP-FastCGI',path='*.php',verb='*',modules='FastCgiModule',scriptProcessor='C:\tools\php\php-cgi.exe',resourceType='Either']
- iisreset
- NET START W3SVC
- mkdir "C:\projects\phpbb\phpBB\cache\test"
- mkdir "C:\projects\phpbb\phpBB\cache\installer"
- icacls "C:\projects\phpbb\phpBB\cache" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\files" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\store" /grant Users:F /T
- icacls "C:\projects\phpbb\phpBB\images\avatars\upload" /grant Users:F /T
test_script:
- cd c:\projects\phpbb
- php -e phpBB\vendor\phpunit\phpunit\phpunit --verbose

View File

@@ -1,8 +1,8 @@
Checklist:
- [ ] Correct branch: master for new features; 3.3.x & 3.2.x for fixes
- [ ] Correct branch: master for new features; 3.3.x for fixes
- [ ] Tests pass
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/dev/master/development/coding_guidelines.html), [3.3.x](https://area51.phpbb.com/docs/dev/3.3.x/development/coding_guidelines.html) and [3.2.x](https://area51.phpbb.com/docs/dev/3.2.x/development/coding_guidelines.html)
- [ ] Code follows coding guidelines: [master](https://area51.phpbb.com/docs/master/coding-guidelines.html) and [3.3.x](https://area51.phpbb.com/docs/dev/3.3.x/development/coding_guidelines.html)
- [ ] Commit follows commit message [format](https://area51.phpbb.com/docs/dev/3.3.x/development/git.html)
Tracker ticket (set the ticket ID to **your ticket ID**):

27
.github/check-doctum-parse-errors.sh vendored Executable file
View File

@@ -0,0 +1,27 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
if [ ! -f doctum.phar ]; then
# Download the latest (5.x.x) release if the file does not exist
# Remove it to update your phar
curl -O https://doctum.long-term.support/releases/5/doctum.phar
rm -f doctum.phar.sha256
curl -O https://doctum.long-term.support/releases/5/doctum.phar.sha256
sha256sum --strict --check doctum.phar.sha256
rm -f doctum.phar.sha256
chmod +x ./doctum.phar
# You can fetch the latest (5.x.x) version code here:
# https://doctum.long-term.support/releases/5/VERSION
fi
# Show the version to inform users of the script
./doctum.phar version --text
./doctum.phar parse build/doctum-checkout.conf.php -v

63
.github/check-executable-files.sh vendored Executable file
View File

@@ -0,0 +1,63 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
root="$1"
path="${root}phpBB/"
# Check the permissions of the files
# The following variables MUST NOT contain any wildcard
# Directories to skip
directories_skipped="-path ${path}develop -o -path ${path}vendor"
# Files to skip
files_skipped="-false"
# Files which have to be executable
executable_files="-path ${path}bin/* -o -path ${path}install/phpbbcli.php"
incorrect_files=$( \
find ${path} \
'(' \
'(' \
${directories_skipped} \
')' \
-a -type d -prune -a -type f \
')' -o \
'(' \
-type f -a \
-not '(' \
${files_skipped} \
')' -a \
'(' \
'(' \
'(' \
${executable_files} \
')' -a \
-not -perm /100 \
')' -o \
'(' \
-not '(' \
${executable_files} \
')' -a \
-perm /111 \
')' \
')' \
')' \
)
if [ "${incorrect_files}" != '' ]
then
echo "The following files do not have proper permissions:";
ls -la ${incorrect_files}
exit 1;
fi

14
.github/check-image-icc-profiles.sh vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
find . -type f -a -iregex '.*\.\(gif\|jpg\|jpeg\|png\)$' -a -not -wholename '*vendor/*' | \
parallel --gnu --keep-order 'phpBB/develop/strip_icc_profiles.sh {}'

64
.github/ext-check-executable-files.sh vendored Executable file
View File

@@ -0,0 +1,64 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
root="$1"
extname="$2"
path="${root}phpBB/ext/${extname}/"
# Check the permissions of the files
# The following variables MUST NOT contain any wildcard
# Directories to skip
directories_skipped="-path ${path}develop -o -path ${path}vendor -o -path ${path}.git"
# Files to skip
files_skipped="-false"
# Files which have to be executable
executable_files="-path ${path}bin/* -o -path ${path}install/phpbbcli.php"
incorrect_files=$( \
find ${path} \
'(' \
'(' \
${directories_skipped} \
')' \
-a -type d -prune -a -type f \
')' -o \
'(' \
-type f -a \
-not '(' \
${files_skipped} \
')' -a \
'(' \
'(' \
'(' \
${executable_files} \
')' -a \
-not -perm /100 \
')' -o \
'(' \
-not '(' \
${executable_files} \
')' -a \
-perm /111 \
')' \
')' \
')' \
)
if [ "${incorrect_files}" != '' ]
then
echo "The following files do not have proper permissions:";
ls -la ${incorrect_files}
exit 1;
fi

25
.github/ext-sniff.sh vendored Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
EXTNAME=$1
NOTESTS=$2
if [ "$NOTESTS" == "1" ]
then
phpBB/vendor/bin/phpcs \
-s \
--extensions=php \
--standard=build/code_sniffer/ruleset-php-extensions.xml \
--ignore=*/"$EXTNAME"/tests/*,*/"$EXTNAME"/vendor/* \
phpBB/ext/"$EXTNAME"
fi

41
.github/ldap/base.ldif vendored Normal file
View File

@@ -0,0 +1,41 @@
dn: dc=example,dc=com
objectClass: top
objectClass: dcObject
objectClass: organization
o: example
dc: example
dn: ou=foo,dc=example,dc=com
objectClass: organizationalUnit
ou: foo
dn: cn=admin,dc=example,dc=com
objectClass: simpleSecurityObject
objectClass: organizationalRole
cn: admin
description: LDAP administrator
userPassword:: e1NTSEF9NytMR2gveUxTMzdsc3RRd1V1dENZSVA0TWdYdm9SdDY=
dn: ou=group,dc=example,dc=com
objectClass: organizationalUnit
ou: group
dn: cn=admin,ou=foo,dc=example,dc=com
objectClass: posixAccount
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
loginShell: /bin/bash
homeDirectory: /home/admin
uid: admin
cn: admin
uidNumber: 10000
gidNumber: 10000
sn: admin
mail: admin@example.com
userPassword:: e1NTSEF9WHpueGZURHZZc21JSkl6czdMVXBjdCtWYTA1dlMzVlQ=
dn: cn=admin,ou=group,dc=example,dc=com
objectClass: posixGroup
gidNumber: 10000
cn: admin

17
.github/ldap/slapd.conf vendored Normal file
View File

@@ -0,0 +1,17 @@
# See slapd.conf(5) for details on configuration options.
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/nis.schema
pidfile /var/tmp/slapd/slapd.pid
argsfile /var/tmp/slapd/slapd.args
modulepath /usr/lib/openldap
database ldif
directory /var/tmp/slapd
suffix "dc=example,dc=com"
rootdn "cn=admin,dc=example,dc=com"
rootpw adminadmin

16
.github/phing-sniff.sh vendored Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
cd build
../phpBB/vendor/bin/phing sniff
cd ..

39
.github/phpunit-mariadb-github.xml vendored Normal file
View File

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="mysqli" />
<server name="PHPBB_TEST_DBHOST" value="0.0.0.0" />
<server name="PHPBB_TEST_DBPORT" value="3306" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="root" />
<server name="PHPBB_TEST_DBPASSWD" value="" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

41
.github/phpunit-mssql-github.xml vendored Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mssqlnative" />
<server name="PHPBB_TEST_DBHOST" value="127.0.0.1" />
<server name="PHPBB_TEST_DBPORT" value="" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="sa" />
<server name="PHPBB_TEST_DBPASSWD" value="Pssw0rd_12" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

41
.github/phpunit-mysql-github.xml vendored Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\mysqli" />
<server name="PHPBB_TEST_DBHOST" value="0.0.0.0" />
<server name="PHPBB_TEST_DBPORT" value="3306" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="root" />
<server name="PHPBB_TEST_DBPASSWD" value="" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

41
.github/phpunit-postgres-github.xml vendored Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\postgres"/>
<server name="PHPBB_TEST_DBHOST" value="localhost" />
<server name="PHPBB_TEST_DBPORT" value="5432" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="postgres" />
<server name="PHPBB_TEST_DBPASSWD" value="postgres" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

41
.github/phpunit-psql-windows-github.xml vendored Normal file
View File

@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_DBMS" value="phpbb\db\driver\postgres"/>
<server name="PHPBB_TEST_DBHOST" value="localhost" />
<server name="PHPBB_TEST_DBPORT" value="5432" />
<server name="PHPBB_TEST_DBNAME" value="phpbb_tests" />
<server name="PHPBB_TEST_DBUSER" value="postgres" />
<server name="PHPBB_TEST_DBPASSWD" value="root" />
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://phpbb.test/" />
</php>
</phpunit>

35
.github/phpunit-sqlite3-github.xml vendored Normal file
View File

@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="true"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
bootstrap="../tests/bootstrap.php">
<testsuites>
<testsuite name="phpBB Test Suite">
<directory suffix="_test.php">../tests</directory>
<exclude>../tests/functional</exclude>
<exclude>../tests/lint_test.php</exclude>
</testsuite>
<testsuite name="phpBB Functional Tests">
<directory suffix="_test.php">../tests/functional</directory>
</testsuite>
</testsuites>
<groups>
<exclude>
<group>slow</group>
</exclude>
</groups>
<php>
<server name="PHPBB_TEST_REDIS_HOST" value="localhost" />
<server name="PHPBB_TEST_MEMCACHED_HOST" value="localhost" />
<server name="PHPBB_TEST_TABLE_PREFIX" value="phpbb_"/>
<server name="PHPBB_FUNCTIONAL_URL" value="http://localhost/" />
</php>
</phpunit>

22
.github/prepare-extension.sh vendored Executable file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
EXTNAME=$1
# Move the extension in place
mkdir --parents phpBB/ext/$EXTNAME
cp -R ../tmp/* phpBB/ext/$EXTNAME
# Move the test files for extensions in place
cp -R .github/*.xml phpBB/ext/$EXTNAME/.github
cp -R .github/*.sh phpBB/ext/$EXTNAME/.github

26
.github/setup-database.sh vendored Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
DB=$1
MYISAM=$2
if [ "$DB" == "postgres" ]
then
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
psql -c 'create database phpbb_tests;' -U postgres
fi
if [ "$MYISAM" == '1' ]
then
mysql -h 127.0.0.1 -u root -e 'SET GLOBAL storage_engine=MyISAM;'
fi

14
.github/setup-exiftool.sh vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
sudo apt-get update
sudo apt-get install -y parallel libimage-exiftool-perl

19
.github/setup-ldap.sh vendored Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
sudo apt-get -y install ldap-utils slapd
mkdir /var/tmp/slapd
cp .github/ldap/slapd.conf /var/tmp/slapd/slapd.conf
slapd -d 256 -d 128 -f /var/tmp/slapd/slapd.conf -h ldap://localhost:3389 &
sleep 3
ldapadd -h localhost:3389 -D "cn=admin,dc=example,dc=com" -w adminadmin -f .github/ldap/base.ldif

36
.github/setup-phpbb.sh vendored Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
DB=$1
PHP_VERSION=$2
NOTESTS=$3
if [ "$NOTESTS" == '1' ]
then
.github/setup-exiftool.sh
.github/setup-unbuffer.sh
fi
if [ "$NOTESTS" != '1' ]
then
.github/setup-webserver.sh
fi
cd phpBB
php ../composer.phar install --dev --no-interaction
if [[ "$PHP_VERSION" =~ ^nightly$ || "$PHP_VERSION" =~ ^8 ]]
then
php ../composer.phar remove phpunit/dbunit --dev --update-with-dependencies \
&& php ../composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 --dev --update-with-all-dependencies --ignore-platform-reqs
fi
cd ..

14
.github/setup-unbuffer.sh vendored Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/sh
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
sudo apt-get update
sudo apt-get install -y expect-dev

81
.github/setup-webserver.sh vendored Executable file
View File

@@ -0,0 +1,81 @@
#!/bin/bash
#
# This file is part of the phpBB Forum Software package.
#
# @copyright (c) phpBB Limited <https://www.phpbb.com>
# @license GNU General Public License, version 2 (GPL-2.0)
#
# For full copyright and license information, please see
# the docs/CREDITS.txt file.
#
set -e
set -x
sudo apt-get update
sudo apt-get install -y nginx coreutils
sudo service nginx stop
DIR=$(dirname "$0")
USER=$(whoami)
PHPBB_ROOT_PATH=$(realpath "$DIR/../phpBB")
NGINX_SITE_CONF="/etc/nginx/sites-enabled/default"
NGINX_CONF="/etc/nginx/nginx.conf"
APP_SOCK=$(realpath "$DIR")/php-app.sock
NGINX_PHP_CONF="$DIR/nginx-php.conf"
# php-fpm
PHP_FPM_BIN="/usr/sbin/php-fpm$PHP_VERSION"
PHP_FPM_CONF="$DIR/php-fpm.conf"
if [ ! -f $PHP_FPM_BIN ] && [ -f "/usr/bin/php-fpm" ]
then
PHP_FPM_BIN="/usr/bin/php-fpm"
fi
if [ ! -f $PHP_FPM_BIN ]
then
sudo apt-get install php$PHP_VERSION-fpm php$PHP_VERSION-cli \
php$PHP_VERSION-curl php$PHP_VERSION-xml php$PHP_VERSION-mbstring \
php$PHP_VERSION-zip php$PHP_VERSION-mysql php$PHP_VERSION-sqlite3 \
php$PHP_VERSION-intl php$PHP_VERSION-gd php$PHP_VERSION-pgsql
sudo service php$PHP_VERSION-fpm start
sudo service php$PHP_VERSION-fpm status
fi
echo "
[global]
[ci]
user = $USER
group = $USER
listen = $APP_SOCK
listen.mode = 0666
pm = static
pm.max_children = 2
php_admin_value[memory_limit] = 128M
" > $PHP_FPM_CONF
sudo $PHP_FPM_BIN \
--fpm-config "$DIR/php-fpm.conf"
# nginx
sudo sed -i "s/user www-data;/user $USER;/g" $NGINX_CONF
sudo cp "$DIR/../phpBB/docs/nginx.sample.conf" "$NGINX_SITE_CONF"
sudo sed -i \
-e "s/example\.com/localhost/g" \
-e "s|root /path/to/phpbb;|root $PHPBB_ROOT_PATH;|g" \
$NGINX_SITE_CONF
# Generate FastCGI configuration for Nginx
echo "
upstream php {
server unix:$APP_SOCK;
}
" > $NGINX_PHP_CONF
sudo mv "$NGINX_PHP_CONF" /etc/nginx/conf.d/php.conf
sudo nginx -T
sudo service nginx start

580
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,580 @@
name: Tests
on:
push:
branches:
- 3.3.x
- master
- 'prep-release-*'
tags:
- 'release-*'
pull_request:
branches:
- 3.3.x
- master
- 'prep-release-*'
jobs:
# Basic checks, e.g. parse errors, commit messages, etc.
basic-checks:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- db: 'none'
php: '7.2'
NOTESTS: 1
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 100
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
env:
PHP_VERSION: ${{ matrix.php }}
run: |
cd phpBB
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "::set-output name=version::${PHP_VERSION%.*}"
cd ..
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
- name: Setup environment for phpBB
env:
DB: ${{ matrix.db }}
PHP_VERSION: ${{ matrix.php }}
NOTESTS: '1'
run: |
.github/setup-phpbb.sh $DB $PHP_VERSION $NOTESTS
- name: Phing sniff
run: |
.github/phing-sniff.sh
- name: Check doctum parse errors
run: |
.github/check-doctum-parse-errors.sh
- name: Check image ICC profiles
run: |
.github/check-image-icc-profiles.sh
- name: Check executable files
run: |
.github/check-executable-files.sh ./
- name: Check commit message
if: github.event_name == 'pull_request'
run: |
git fetch origin $GITHUB_BASE_REF &> /dev/null
git-tools/commit-msg-hook-range.sh $(git rev-parse origin/$GITHUB_BASE_REF)..$GITHUB_SHA
# Tests for MySQL and MariaDB
mysql-tests:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- php: '7.1'
db: "mariadb:10.1"
- php: '7.1'
db: "mariadb:10.2"
- php: '7.1'
db: "mariadb:10.3"
- php: '7.1'
db: "mariadb:10.4"
- php: '7.1'
db: "mariadb:10.5"
- php: '7.1'
db: "mysql:5.6"
db_alias: "MySQL Slow Tests"
SLOWTESTS: 1
- php: '7.1'
db: "mysql:5.6"
db_alias: "MyISAM Tests"
MYISAM: 1
- php: '7.1'
db: "mysql:5.6"
- php: '7.1'
db: "mysql:5.7"
- php: '7.2'
db: "mysql:5.7"
- php: '7.3'
db: "mysql:5.7"
- php: '7.4'
db: "mysql:5.7"
- php: '7.4'
db: "mysql:8.0"
- php: '8.0'
db: "mysql:5.7"
- php: '8.1'
db: "mysql:5.7"
- php: '8.2'
db: "mysql:5.7"
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
services:
mysql:
image: ${{ matrix.db }}
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: phpbb_tests
ports:
- 3306:3306
options: >-
--health-cmd="mysqladmin ping"
--health-interval=10s
--health-timeout=5s
--health-retries=3
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: database-type
env:
MATRIX_DB: ${{ matrix.db }}
run: |
db=$(echo "${MATRIX_DB%%:*}")
echo "::set-output name=db::$db"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
env:
PHP_VERSION: ${{ matrix.php }}
run: |
cd phpBB
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "::set-output name=version::${PHP_VERSION%.*}"
cd ..
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
- name: Setup environment for phpBB
env:
DB: ${{steps.database-type.outputs.db}}
PHP_VERSION: ${{ matrix.php }}
NOTESTS: '0'
run: |
.github/setup-phpbb.sh $DB $PHP_VERSION ${NOTESTS:-0}
- name: Setup database
env:
DB: ${{steps.database-type.outputs.db}}
MYISAM: ${{ matrix.MYISAM != 1 && '0' || '1' }}
run: |
.github/setup-database.sh $DB $MYISAM
- name: Setup LDAP
if: ${{ matrix.SLOWTESTS == 1 }}
run: |
.github/setup-ldap.sh
- name: Lint tests
if: ${{ matrix.SLOWTESTS != 1 && steps.database-type.outputs.db == 'mysql' }}
run: phpBB/vendor/bin/phpunit tests/lint_test.php
- name: Run unit tests
env:
DB: ${{steps.database-type.outputs.db}}
if: ${{ matrix.SLOWTESTS != 1 && matrix.NOTESTS != 1 }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --verbose --stop-on-error
- name: Slow tests
env:
DB: ${{steps.database-type.outputs.db}}
if: ${{ matrix.SLOWTESTS == 1 }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --group slow
# Tests for PostgreSQL
postgres-tests:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- php: '7.1'
db: "postgres:9.5"
- php: '7.1'
db: "postgres:9.6"
- php: '7.1'
db: "postgres:10"
- php: '7.1'
db: "postgres:11"
- php: '7.1'
db: "postgres:12"
- php: '7.1'
db: "postgres:13"
- php: '7.2'
db: "postgres:13"
- php: '7.3'
db: "postgres:13"
- php: '7.4'
db: "postgres:13"
- php: '8.0'
db: "postgres:12"
- php: '8.0'
db: "postgres:13"
- php: '8.1'
db: "postgres:14"
- php: '8.2'
db: "postgres:14"
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
services:
postgres:
image: ${{ matrix.db != 'postgres:9.5' && matrix.db != 'postgres:9.6' && matrix.db != 'postgres:10' && matrix.db != 'postgres:11' && matrix.db != 'postgres:12' && matrix.db != 'postgres:13' && 'postgres:10' || matrix.db }}
env:
POSTGRES_HOST: localhost
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
-v /var/run/postgresql:/var/run/postgresql
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: database-type
env:
MATRIX_DB: ${{ matrix.db }}
run: |
db=$(echo "${MATRIX_DB%%:*}")
echo "::set-output name=db::$db"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
env:
PHP_VERSION: ${{ matrix.php }}
run: |
cd phpBB
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "::set-output name=version::${PHP_VERSION%.*}"
cd ..
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
- name: Setup environment for phpBB
env:
DB: ${{steps.database-type.outputs.db}}
PHP_VERSION: ${{ matrix.php }}
NOTESTS: '0'
run: |
.github/setup-phpbb.sh $DB $PHP_VERSION ${NOTESTS:-0}
- name: Setup database
env:
DB: ${{steps.database-type.outputs.db}}
MYISAM: '0'
run: |
.github/setup-database.sh $DB $MYISAM
- name: Run unit tests
env:
DB: ${{steps.database-type.outputs.db}}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --verbose --stop-on-error
# Other database types, namely sqlite3 and mssql
other-tests:
runs-on: ubuntu-18.04
strategy:
matrix:
include:
- php: '7.1'
db: "sqlite3"
- php: '7.2'
db: "mcr.microsoft.com/mssql/server:2017-latest"
db_alias: 'MSSQL 2017'
- php: '7.2'
db: "mcr.microsoft.com/mssql/server:2019-latest"
db_alias: 'MSSQL 2019'
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
services:
mssql:
image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-latest' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }}
env:
SA_PASSWORD: "Pssw0rd_12"
ACCEPT_EULA: "y"
ports:
- 1433:1433
options: >-
--health-cmd="/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Pssw0rd_12' -Q \"Use [master]; CREATE DATABASE [phpbb_tests] COLLATE Latin1_General_CI_AS\" || exit 1"
--health-interval 10s
--health-timeout 5s
--health-retries 5
--health-start-period 10s
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
- name: Checkout repository
uses: actions/checkout@v2
- id: database-type
env:
MATRIX_DB: ${{ matrix.db }}
run: |
if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-latest' ]
then
db='mssql'
else
db=$(echo "${MATRIX_DB%%:*}")
fi
echo "::set-output name=db::$db"
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, mysqli, sqlite, pdo_sqlite, intl, gd, exif, iconv, sqlsrv, pdo_sqlsrv, ldap
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
env:
PHP_VERSION: ${{ matrix.php }}
run: |
cd phpBB
echo "::set-output name=dir::$(composer config cache-files-dir)"
echo "::set-output name=version::${PHP_VERSION%.*}"
cd ..
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
- name: Setup environment for phpBB
env:
DB: ${{steps.database-type.outputs.db}}
PHP_VERSION: ${{ matrix.php }}
NOTESTS: '0'
run: |
.github/setup-phpbb.sh $DB $PHP_VERSION ${NOTESTS:-0}
- name: Setup database
env:
DB: ${{steps.database-type.outputs.db}}
MYISAM: '0'
run: |
.github/setup-database.sh $DB $MYISAM
- name: Run unit tests
env:
DB: ${{steps.database-type.outputs.db}}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-$DB-github.xml --verbose --stop-on-error
# Test with IIS & PostgreSQL on Windows
windows-tests:
runs-on: windows-latest
strategy:
matrix:
include:
- php: '7.4'
db: "postgres"
type: 'unit'
- php: '8.0'
db: "postgres"
type: 'unit'
- php: '8.1'
db: "postgres"
type: 'unit'
- php: '8.2'
db: "postgres"
type: 'unit'
- php: '7.4'
db: "postgres"
type: 'functional'
- php: '8.0'
db: "postgres"
type: 'functional'
- php: '8.1'
db: "postgres"
type: 'functional'
- php: '8.2'
db: "postgres"
type: 'functional'
name: Windows - PHP ${{ matrix.php }} - ${{ matrix.db }} - ${{ matrix.type }}
steps:
- name: Prepare git for Windows
run: |
git config --system core.autocrlf false
git config --system core.eol lf
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, intl, gd, exif, iconv, pgsql, pdo_pgsql
ini-values: upload_tmp_dir=${{ runner.temp }}, sys_temp_dir=${{ runner.temp }}
coverage: none
- name: Get Composer Cache Directory
id: composer-cache
run: |
cd phpBB
echo "::set-output name=dir::$(composer config cache-files-dir)"
$major_version="${{ matrix.php }}".substring(0,1)
echo "::set-output name=version::$major_version"
cd ..
- name: Cache Composer dependencies
uses: actions/cache@v2
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: composer-${{ steps.composer-cache.outputs.version }}-${{ hashFiles('phpBB/composer.lock') }}
- name: Setup environment for phpBB
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
TEMP_DIR: ${{ runner.temp }}
run: |
Enable-WindowsOptionalFeature -Online -FeatureName IIS-WebServerRole, IIS-WebServer, IIS-CommonHttpFeatures, IIS-ManagementConsole, IIS-HttpErrors, IIS-HttpRedirect, IIS-WindowsAuthentication, IIS-StaticContent, IIS-DefaultDocument, IIS-HttpCompressionStatic, IIS-DirectoryBrowsing, IIS-WebServerManagementTools, IIS-CGI -All
Set-Service wuauserv -StartupType Manual
(Get-Content ${env:GITHUB_WORKSPACE}\phpBB\web.config).replace("<configuration>", "<configuration>`n`t<system.web>`n`t`t<customErrors mode=`"Off`"/>`n`t</system.web>") | Set-Content ${env:GITHUB_WORKSPACE}\phpBB\web.config
(Get-Content ${env:GITHUB_WORKSPACE}\phpBB\web.config).replace("`t</system.webServer>", "`t`t<httpErrors errorMode=`"Detailed`" />`n`t</system.webServer>") | Set-Content ${env:GITHUB_WORKSPACE}\phpBB\web.config
choco install urlrewrite -y
Import-Module WebAdministration
New-WebSite -Name 'phpBBTest' -PhysicalPath "${env:GITHUB_WORKSPACE}\phpBB" -Force
$session = Get-PSSession -Name WinPSCompatSession
$sb = {Set-ItemProperty 'IIS:\Sites\phpBBTest' -name Bindings -value @{protocol='http';bindingInformation='*:80:phpbb.test'}}
Invoke-Command -Scriptblock $sb -Session $session
$sb = {Set-WebConfigurationProperty -filter /system.WebServer/security/authentication/AnonymousAuthentication -name enabled -value true -location "IIS:\Sites\phpBBTest"}
Invoke-Command -Scriptblock $sb -Session $session
Add-Content -Path $env:windir\System32\drivers\etc\hosts -Value "`r`n127.0.0.1`tphpbb.test" -Force
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";%windir%\system32\inetsrv")
echo Setup FAST-CGI configuration
Add-WebConfiguration -Filter /system.webServer/fastCgi -PSPath IIS:\ -Value @{fullpath="C:\tools\php\php-cgi.exe"}
echo Setup FACT-CGI handler
New-WebHandler -Name "PHP-FastCGI" -Path "*.php" -Modules FastCgiModule -ScriptProcessor "C:\tools\php\php-cgi.exe" -Verb '*' -ResourceType Either
iisreset
NET START W3SVC
mkdir "${env:GITHUB_WORKSPACE}\phpBB\cache\test"
mkdir "${env:GITHUB_WORKSPACE}\phpBB\cache\installer"
icacls "${env:GITHUB_WORKSPACE}\phpBB\cache" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\files" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\store" /grant Users:F /T
icacls "${env:GITHUB_WORKSPACE}\phpBB\images\avatars\upload" /grant Users:F /T
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule("IIS_IUSRS", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow")
$acl = Get-ACL "${env:TEMP_DIR}"
$acl.AddAccessRule($accessRule)
Set-ACL -Path "${env:TEMP_DIR}" -ACLObject $acl
cd ${env:GITHUB_WORKSPACE}\phpBB
php ..\composer.phar install
php ..\composer.phar remove phpunit/dbunit --dev --update-with-dependencies
php ..\composer.phar require symfony/yaml:~4.4 misantron/dbunit:~5.0 phpunit/phpunit:^9.3 --dev --update-with-all-dependencies --ignore-platform-reqs
cd ..
- name: Setup database
run: |
$postgreSqlSvc = Get-Service "postgresql*"
Set-Service $postgreSqlSvc.Name -StartupType manual
$runningStatus = [System.ServiceProcess.ServiceControllerStatus]::Running
$maxStartTimeout = New-TimeSpan -Seconds 30
try {
$postgreSqlSvc.Start()
$postgreSqlSvc.WaitForStatus($runningStatus, $maxStartTimeout)
} catch {
$_ | select *
}
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
$env:PGPASSWORD = 'root'
psql -c 'ALTER SYSTEM SET hot_standby = on;' -U postgres
psql -c 'ALTER SYSTEM SET wal_level = minimal;' -U postgres
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
psql -c 'create database phpbb_tests;' -U postgres
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender
Set-MpPreference -DisableRealtimeMonitoring $true
- name: Run unit tests
if: ${{ matrix.type == 'unit' }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --exclude-group functional
- name: Run unit tests
if: ${{ matrix.type == 'functional' }}
run: |
phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --group functional

34
.gitignore vendored
View File

@@ -1,32 +1,54 @@
*~
/phpunit.xml
# Excludes cache
/phpBB/cache/*
!/phpBB/cache/.htaccess
!/phpBB/cache/index.html
/phpBB/composer.phar
# Excludes user data
/phpBB/config*.php*
/phpBB/ext/*
/phpBB/files/*
/phpBB/images/avatars/gallery/*
/phpBB/images/avatars/upload/*
/phpBB/images/ranks/*
/phpBB/install/schemas/schema.json
/phpBB/store/*
# Excludes all custom langages
/phpBB/language/*
!/phpBB/language/en
/phpBB/store/*
# Excludes all custom styles
/phpBB/styles/*
!/phpBB/styles/prosilver
/phpBB/styles/prosilver/theme/*/
!/phpBB/styles/prosilver/theme/en
!/phpBB/styles/prosilver/theme/images
!/phpBB/styles/all
node_modules
# Excludes all custom env
/phpBB/config/*
!/phpBB/config/default
!/phpBB/config/development
!/phpBB/config/installer
!/phpBB/config/production
!/phpBB/config/test
!/phpBB/config/.htaccess
# Excludes vendors
/phpBB/vendor
# Excludes test / dev files
/phpunit.xml
/phpBB/composer.phar
/tests/phpbb_unit_tests.sqlite*
/tests/test_config*.php
/tests/tmp/*
/tests/vendor
/vagrant/phpbb-install-config.yml
.vagrant
node_modules
# Excludes IDE / editors files
*~
.idea
*.DS_Store*
/.vscode

View File

@@ -1,51 +0,0 @@
language: php
dist: xenial
matrix:
include:
- php: 7.1
env: DB=none;NOTESTS=1
- php: 7.1
env: DB=mariadb
- php: 7.1
env: DB=postgres
- php: 7.1
env: DB=sqlite3
- php: 7.1
env: DB=mysqli;SLOWTESTS=1
- php: 7.1
env: DB=mysqli # MyISAM
- php: 7.2
env: DB=mysqli
- php: 7.3
env: DB=mysqli
- php: 7.4
env: DB=mysqli
- php: nightly
env: DB=mysqli
allow_failures:
- php: nightly
fast_finish: true
services:
- redis-server
- postgresql
- mysql
- memcached
install:
- travis/setup-phpbb.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
before_script:
- travis/setup-database.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/setup-ldap.sh $SLOWTESTS
script:
- travis/phing-sniff.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-doctum-parse-errors.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-image-icc-profiles.sh $DB $TRAVIS_PHP_VERSION $NOTESTS
- travis/check-executable-files.sh $DB $TRAVIS_PHP_VERSION $NOTESTS ./
- sh -c "if [ '$SLOWTESTS' != '1' -a '$DB' = 'mysqli' ]; then phpBB/vendor/bin/phpunit tests/lint_test.php; fi"
- sh -c "if [ '$NOTESTS' != '1' -a '$SLOWTESTS' != '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --verbose --stop-on-error; fi"
- sh -c "if [ '$SLOWTESTS' = '1' ]; then phpBB/vendor/bin/phpunit --configuration travis/phpunit-$DB-travis.xml --group slow; fi"
- sh -c "set -x;if [ '$NOTESTS' = '1' -a '$TRAVIS_PULL_REQUEST' != 'false' ]; then git remote set-branches --add origin $TRAVIS_BRANCH && git fetch && git-tools/commit-msg-hook-range.sh origin/$TRAVIS_BRANCH..$TRAVIS_PULL_REQUEST_SHA; fi"

View File

@@ -1,4 +1,4 @@
[![phpBB](phpBB/styles/all/imgs/svg/phpbb_logo_large_cosmic.svg)](https://www.phpbb.com)
[<img src="phpBB/styles/all/imgs/svg/phpbb_logo_large_cosmic.svg" alt="phpBB" style="max-width:40%" width="400">](https://www.phpbb.com)
phpBB is a free open-source bulletin board written in PHP.
@@ -35,13 +35,12 @@ phpBB's [Development Documentation](https://area51.phpbb.com/docs/dev/index.html
## 🔬 Automated Testing
We have unit and functional tests in order to prevent regressions. You can view the bamboo continuous integration [here](https://bamboo.phpbb.com) or check our travis builds below:
We have unit and functional tests in order to prevent regressions. You can view the bamboo continuous integration [here](https://bamboo.phpbb.com) or check our GitHub Actions below:
Branch | Description | Travis CI | AppVeyor
------- | ----------- | ---------- | --------
**master** | Latest development version | [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=master)](http://travis-ci.org/phpbb/phpbb) | [![Build status](https://ci.appveyor.com/api/projects/status/8g98ybngd2f3axy1/branch/master?svg=true)](https://ci.appveyor.com/project/phpBB/phpbb/branch/master)
**3.3.x** | Development of version 3.3.x | [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=3.3.x)](http://travis-ci.org/phpbb/phpbb) | [![Build status](https://ci.appveyor.com/api/projects/status/8g98ybngd2f3axy1/branch/3.3.x?svg=true)](https://ci.appveyor.com/project/phpBB/phpbb/branch/3.3.x)
**3.2.x** | Development of version 3.2.x | [![Build Status](https://travis-ci.org/phpbb/phpbb.svg?branch=3.2.x)](http://travis-ci.org/phpbb/phpbb) | [![Build status](https://ci.appveyor.com/api/projects/status/8g98ybngd2f3axy1/branch/3.2.x?svg=true)](https://ci.appveyor.com/project/phpBB/phpbb/branch/3.2.x)
Branch | Description | GitHub Actions |
------- | ----------- | -------------- |
**master** | Latest development version | ![Tests](https://github.com/phpbb/phpbb/workflows/Tests/badge.svg?branch=master) |
**3.3.x** | Development of version 3.3.x | ![Tests](https://github.com/phpbb/phpbb/workflows/Tests/badge.svg?branch=3.3.x) |
## 📜 License

View File

@@ -2,9 +2,9 @@
<project name="phpBB" description="The phpBB forum software" default="all" basedir="../">
<!-- a few settings for the build -->
<property name="newversion" value="3.3.2-RC1" />
<property name="prevversion" value="3.3.1" />
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.2.10, 3.3.0" />
<property name="newversion" value="3.3.8-RC1" />
<property name="prevversion" value="3.3.7" />
<property name="olderversions" value="3.1.0, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.1.5, 3.1.6, 3.1.7, 3.1.7-pl1, 3.1.8, 3.1.9, 3.1.10, 3.1.11, 3.1.12, 3.2.0, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.2.5, 3.2.6, 3.2.7, 3.2.8, 3.2.9, 3.2.10, 3.2.11, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6" />
<!-- no configuration should be needed beyond this point -->
<property name="oldversions" value="${olderversions}, ${prevversion}" />
@@ -128,13 +128,13 @@
<!-- Builds docs for current branch into build/api/output/master -->
<target name="docs">
<exec dir="."
command="php doctum.phar update build/doctum-checkout.conf.php"
command="./doctum.phar update build/doctum-checkout.conf.php"
passthru="true" />
</target>
<!-- Builds docs for multiple branches/tags into build/api/output/$branch -->
<target name="docs-all">
<exec dir="."
command="php doctum.phar update build/doctum-all.conf.php"
command="./doctum.phar update build/doctum-all.conf.php"
passthru="true" />
</target>

View File

@@ -38,6 +38,7 @@ else
$xml = simplexml_load_string(file_get_contents($url));
}
$types = [];
foreach ($xml->xpath('//item') as $item)
{
$key = (string) $item->key;
@@ -45,23 +46,26 @@ foreach ($xml->xpath('//item') as $item)
$keyUrl = 'https://tracker.phpbb.com/browse/' . $key;
$keyLink = '<a href="' . $keyUrl . '">' . $key . '</a>';
$value = str_replace($key, $keyLink, htmlspecialchars($item->title));
$value = str_replace($key, $keyLink, htmlspecialchars($item->title, ENT_COMPAT));
$value = str_replace(']', '] -', $value);
$types[(string) $item->type][$key] = $value;
}
ksort($types);
foreach ($types as $type => $tickets)
if (count($types))
{
echo "<h4>$type</h4>\n";
echo "<ul>\n";
uksort($tickets, 'strnatcasecmp');
foreach ($tickets as $ticket)
ksort($types);
foreach ($types as $type => $tickets)
{
echo "<li>$ticket</li>\n";
echo "<h4>$type</h4>\n";
echo "<ul>\n";
uksort($tickets, 'strnatcasecmp');
foreach ($tickets as $ticket)
{
echo "<li>$ticket</li>\n";
}
echo "</ul>\n";
}
echo "</ul>\n";
}

View File

@@ -43,10 +43,10 @@ class build_package
$_before = $this->versions[count($this->versions) - 2];
$this->locations = array(
'new_version' => dirname(dirname(__FILE__)) . '/phpBB/',
'old_versions' => dirname(__FILE__) . '/old_versions/',
'root' => dirname(__FILE__) . '/',
'package_dir' => dirname(__FILE__) . '/new_version/'
'new_version' => dirname(__DIR__) . '/phpBB/',
'old_versions' => __DIR__ . '/old_versions/',
'root' => __DIR__ . '/',
'package_dir' => __DIR__ . '/new_version/'
);
$this->package_infos = array(

View File

@@ -0,0 +1,57 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
use PHP_CodeSniffer\Files\File;
use PHP_CodeSniffer\Sniffs\Sniff;
/**
* Checks that the visibility qualifiers are placed after the static keyword
* according to the coding guidelines
*/
class phpbb_Sniffs_ControlStructures_StaticKeywordSniff implements Sniff
{
/**
* Registers the tokens that this sniff wants to listen for.
*/
public function register()
{
return [
T_STATIC,
];
}
/**
* Processes this test, when one of its tokens is encountered.
*
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the stack passed in $tokens.
*
* @return void
*/
public function process(File $phpcsFile, $stackPtr)
{
$tokens = $phpcsFile->getTokens();
$disallowed_after_tokens = [
T_PUBLIC,
T_PROTECTED,
T_PRIVATE,
];
if (in_array($tokens[$stackPtr + 2]['code'], $disallowed_after_tokens))
{
$error = 'Access specifier (e.g. public) should not follow static scope attribute. Encountered "' . $tokens[$stackPtr + 2]['content'] . '" after static';
$phpcsFile->addWarning($error, $stackPtr, 'InvalidStaticFunctionDeclaration', [], 1);
}
}
}

View File

@@ -19,21 +19,34 @@ use PHP_CodeSniffer\Sniffs\Sniff;
*/
class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
{
const FIND = [
T_NS_SEPARATOR,
T_STRING,
T_WHITESPACE,
];
/**
* {@inheritdoc}
*/
public function register()
{
return array(T_USE);
return [T_USE];
}
protected function check(File $phpcsFile, $found_name, $full_name, $short_name, $line)
protected function check(File $phpcsFile, $found_name, $full_name, $short_name, $stack_pointer)
{
$found_name_normalized = ltrim($found_name, '\\');
$full_name = ltrim($full_name, '\\');
if ($found_name === $full_name)
$is_global = ($full_name === $short_name);
$unnecessarily_fully_qualified = ($is_global)
? ($found_name_normalized !== $found_name && $found_name_normalized === $short_name)
: ($found_name_normalized === $full_name);
if ($unnecessarily_fully_qualified)
{
$error = 'Either use statement or full name must be used.';
$phpcsFile->addError($error, $line, 'FullName');
$phpcsFile->addError($error, $stack_pointer, 'FullName');
}
if ($found_name === $short_name)
@@ -58,27 +71,50 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
$class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), ($stackPtr + 1));
$find = array(
T_NS_SEPARATOR,
T_STRING,
T_WHITESPACE,
);
$class_name_end = $phpcsFile->findNext($find, ($stackPtr + 1), null, true);
$class_name_end = $phpcsFile->findNext(self::FIND, ($stackPtr + 1), null, true);
$aliasing_as_position = $phpcsFile->findNext(T_AS, $class_name_end, null, false, null, true);
if ($aliasing_as_position !== false)
{
$alias_position = $phpcsFile->findNext(T_STRING, $aliasing_as_position, null, false, null, true);
$class_name_short = $tokens[$alias_position]['content'];
$class_name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start - 1));
$name_short = $tokens[$alias_position]['content'];
$name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start - 1));
}
else
{
$class_name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start));
$class_name_short = $tokens[$class_name_end - 1]['content'];
$name_full = $phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start));
$name_short = $tokens[$class_name_end - 1]['content'];
}
if ($tokens[$class_name_start]['content'] === 'function'
&& $tokens[$class_name_start + 1]['code'] === T_WHITESPACE)
{
$class_name_start += 2;
$name_full = $phpcsFile->getTokensAsString(
$class_name_start,
($class_name_end - $class_name_start - (int) ($aliasing_as_position !== false))
);
$ok = $this->findFunctionUsage($phpcsFile, $stackPtr, $tokens, $name_full, $name_short);
}
else
{
$ok = $this->findClassUsage($phpcsFile, $stackPtr, $tokens, $name_full, $name_short);
}
if ($name_full[0] === '\\')
{
$phpcsFile->addError("There must not be a leading '\\' in use statements.", $stackPtr, 'Malformed');
}
if (!$ok)
{
$error = 'There must not be unused USE statements.';
$phpcsFile->addError($error, $stackPtr, 'Unused');
}
}
private function findClassUsage(File $phpcsFile, $stackPtr, $tokens, $class_name_full, $class_name_short)
{
$ok = false;
// Checks in simple statements (new, instanceof and extends)
@@ -95,11 +131,11 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
continue;
}
$simple_class_name_end = $phpcsFile->findNext($find, ($simple_statement + 1), null, true);
$simple_class_name_end = $phpcsFile->findNext(self::FIND, ($simple_statement + 1), null, true);
$simple_class_name = trim($phpcsFile->getTokensAsString($simple_class_name_start, ($simple_class_name_end - $simple_class_name_start)));
$ok = $this->check($phpcsFile, $simple_class_name, $class_name_full, $class_name_short, $simple_statement) ? true : $ok;
$ok = $this->check($phpcsFile, $simple_class_name, $class_name_full, $class_name_short, $simple_statement) || $ok;
}
}
@@ -109,12 +145,12 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
{
$old_paamayim_nekudotayim = $paamayim_nekudotayim;
$paamayim_nekudotayim_class_name_start = $phpcsFile->findPrevious($find, $paamayim_nekudotayim - 1, null, true);
$paamayim_nekudotayim_class_name_start = $phpcsFile->findPrevious(self::FIND, $paamayim_nekudotayim - 1, null, true);
$paamayim_nekudotayim_class_name_end = $paamayim_nekudotayim - 1;
$paamayim_nekudotayim_class_name = trim($phpcsFile->getTokensAsString($paamayim_nekudotayim_class_name_start + 1, ($paamayim_nekudotayim_class_name_end - $paamayim_nekudotayim_class_name_start)));
$ok = $this->check($phpcsFile, $paamayim_nekudotayim_class_name, $class_name_full, $class_name_short, $paamayim_nekudotayim) ? true : $ok;
$ok = $this->check($phpcsFile, $paamayim_nekudotayim_class_name, $class_name_full, $class_name_short, $paamayim_nekudotayim) || $ok;
}
// Checks in implements
@@ -129,11 +165,11 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
$old_implemented_class = $implemented_class;
$implements_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), ($implemented_class - 1));
$implements_class_name_end = $phpcsFile->findNext($find, ($implemented_class - 1), null, true);
$implements_class_name_end = $phpcsFile->findNext(self::FIND, ($implemented_class - 1), null, true);
$implements_class_name = trim($phpcsFile->getTokensAsString($implements_class_name_start, ($implements_class_name_end - $implements_class_name_start)));
$ok = $this->check($phpcsFile, $implements_class_name, $class_name_full, $class_name_short, $implements) ? true : $ok;
$ok = $this->check($phpcsFile, $implements_class_name, $class_name_full, $class_name_short, $implements) || $ok;
}
}
@@ -141,7 +177,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
while (($docblock = $phpcsFile->findNext(T_DOC_COMMENT_CLOSE_TAG, ($old_docblock + 1))) !== false)
{
$old_docblock = $docblock;
$ok = $this->checkDocblock($phpcsFile, $docblock, $tokens, $class_name_full, $class_name_short) ? true : $ok;
$ok = $this->checkDocblock($phpcsFile, $docblock, $tokens, $class_name_full, $class_name_short) || $ok;
}
// Checks in type hinting
@@ -154,7 +190,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
$params = $phpcsFile->getMethodParameters($function_declaration);
foreach ($params as $param)
{
$ok = $this->check($phpcsFile, $param['type_hint'], $class_name_full, $class_name_short, $function_declaration) ? true : $ok;
$ok = $this->check($phpcsFile, $param['type_hint'], $class_name_full, $class_name_short, $function_declaration) || $ok;
}
}
@@ -165,18 +201,106 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
$old_catch = $catch;
$caught_class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), $catch + 1);
$caught_class_name_end = $phpcsFile->findNext($find, $caught_class_name_start + 1, null, true);
$caught_class_name_end = $phpcsFile->findNext(self::FIND, $caught_class_name_start + 1, null, true);
$caught_class_name = trim($phpcsFile->getTokensAsString($caught_class_name_start, ($caught_class_name_end - $caught_class_name_start)));
$ok = $this->check($phpcsFile, $caught_class_name, $class_name_full, $class_name_short, $catch) ? true : $ok;
$ok = $this->check($phpcsFile, $caught_class_name, $class_name_full, $class_name_short, $catch) || $ok;
}
if (!$ok)
$old_use = $stackPtr;
while (($use = $phpcsFile->findNext(T_USE, ($old_use + 1))) !== false)
{
$error = 'There must not be unused USE statements.';
$phpcsFile->addError($error, $stackPtr, 'Unused');
$old_use = $use;
// Needs to be inside a class and must not be inside a function scope.
if (!$phpcsFile->hasCondition($use, [T_CLASS, T_TRAIT]) || $phpcsFile->hasCondition($use, T_FUNCTION))
{
continue;
}
$next = $phpcsFile->findNext(T_WHITESPACE, ($use + 1), null, true, null, true);
if ($tokens[$next]['code'] === T_OPEN_PARENTHESIS)
{
continue;
}
$class_name_start = $phpcsFile->findNext(array(T_NS_SEPARATOR, T_STRING), $use + 1, null, false, null, true);
$class_name_end = $phpcsFile->findNext(self::FIND, $class_name_start + 1, null, true, null, true);
$found_name = trim($phpcsFile->getTokensAsString($class_name_start, ($class_name_end - $class_name_start)));
$ok = $this->check($phpcsFile, $found_name, $class_name_full, $class_name_short, $use) || $ok;
}
return $ok;
}
private function findFunctionUsage(File $phpcsFile, $stackPtr, $tokens, $name_full, $name_short)
{
$ok = false;
$position = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $stackPtr + 1);
while ($position !== false)
{
$function_name_end = $position;
$found_start = 1 + $phpcsFile->findPrevious(
[T_NS_SEPARATOR, T_STRING, T_WHITESPACE],
$function_name_end - 1,
null,
true
);
$position = $phpcsFile->findNext(T_OPEN_PARENTHESIS, $position + 1);
if ($found_start === null)
{
continue;
}
$function_name_start = $found_start;
// Trim the output.
while ($tokens[$function_name_start]['code'] === T_WHITESPACE && $function_name_start < $function_name_end)
{
++$function_name_start;
}
while ($tokens[$function_name_end]['code'] === T_WHITESPACE && $function_name_end > $function_name_start)
{
--$function_name_end;
}
$function_name_length = $function_name_end - $function_name_start;
// Filter out control structures, built in type constructors, etc.
if ($function_name_length <= 0)
{
continue;
}
// This doesn't seem to be valid PHP, where is the opening tag?
if ($found_start === 0)
{
continue;
}
$previous_token = $found_start - 1;
$filter = [
T_FUNCTION, // Function declaration
T_OBJECT_OPERATOR, // Method call
T_DOUBLE_COLON, // Static method call
T_NEW, // Constructors
];
// Filter out calls to methods and function declarations.
if (in_array($tokens[$previous_token]['code'], $filter))
{
continue;
}
$function_name = $phpcsFile->getTokensAsString($function_name_start, $function_name_length);
$ok = $this->check($phpcsFile, $function_name, $name_full, $name_short, $function_name_start) || $ok;
}
return $ok;
}
/**
@@ -247,7 +371,7 @@ class phpbb_Sniffs_Namespaces_UnusedUseSniff implements Sniff
$classes = explode('|', str_replace('[]', '', $classes));
foreach ($classes as $class)
{
$ok = $this->check($phpcsFile, $class, $class_name_full, $class_name_short, $tokens[$tag + 2]['line']) ? true : $ok;
$ok = $this->check($phpcsFile, $class, $class_name_full, $class_name_short, $tag + 2) || $ok;
}
}

View File

@@ -89,4 +89,7 @@
<!-- There MUST be one space between control structure and opening parenthesis -->
<rule ref="./phpbb/Sniffs/ControlStructures/OpeningParenthesisSniff.php" />
<!-- Static qualifier MUST be placed before the visibility qualifiers. -->
<rule ref="./phpbb/Sniffs/ControlStructures/StaticKeywordSniff.php" />
</ruleset>

View File

@@ -84,7 +84,7 @@ foreach ($older_verions as $version)
'phpBB ' . $version . ' to ' . $current_version . ' Update Package',
'phpBB-' . $version . '_to_' . $current_version,
'update',
'update',
'advanced_update',
$version
);
}

Binary file not shown.

BIN
doctum.phar Normal file → Executable file

Binary file not shown.

View File

@@ -24,7 +24,17 @@ COMMIT_MSG_HOOK_FATAL=$(git config --bool phpbb.hooks.commit-msg.fatal 2> /dev/n
git config phpbb.hooks.commit-msg.fatal true
EXIT_STATUS=0
for COMMIT_HASH in $(git rev-list --no-merges "$COMMIT_RANGE")
COMMIT_HASHES=$(git rev-list --no-merges "$COMMIT_RANGE")
# If any message have been returned instead of commit hashes list
# send a non-zero exit status upstream.
if ! [[ "$COMMIT_HASHES" =~ ^[0-9a-f]{5,40} ]]
then
EXIT_STATUS=1
fi
for COMMIT_HASH in $COMMIT_HASHES
do
echo "Inspecting commit message of commit $COMMIT_HASH"

View File

@@ -1,7 +1,7 @@
#!/bin/sh
#
# A hook to check syntax of a phpBB3 commit message, per:
# * <http://wiki.phpbb.com/display/DEV/Git>
# * <https://area51.phpbb.com/docs/dev/master/development/git.html>
# * <http://area51.phpbb.com/phpBB/viewtopic.php?p=209919#p209919>
#
# This is a commit-msg hook.

View File

@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
#
# A hook to add [$branch] to the beginning of a commit message
# if certain conditions are met.
@@ -31,12 +31,19 @@ branch="$(echo "$branch" | sed "s/refs\/heads\///g")"
if [ "$2" = "" ]
then
tail="";
ticket_id=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\3/gm;t;d' <<< "$branch");
branch_title=$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\1\2\3/gm;t;d' <<< "$branch");
# Branch is prefixed with 'ticket/', append ticket ID to message
if [ "$branch" != "${branch##ticket/}" ];
if [ "security/" = "$(sed -E 's/(ticket\/)(security\/)?([0-9]+)(.+$)?/\2/gm;t;d' <<< "$branch")" ];
then
tail="$(printf "\n\nPHPBB3-${branch##ticket/}")";
tail="$(printf '\n\nSECURITY-%s' "$ticket_id")";
else
# Branch is prefixed with 'ticket/', append ticket ID to message
if [ "$branch" != "${branch##ticket/}" ];
then
tail="$(printf '\n\nPHPBB3-%s' "$ticket_id")";
fi
fi
echo "[$branch] $tail$(cat "$1")" > "$1"
echo "[$branch_title] $tail$(cat "$1")" > "$1"
fi

View File

@@ -29,7 +29,7 @@
<!-- BEGIN upload -->
:: {upload.FILE_INFO}<br />
<!-- IF upload.S_DENIED --><span class="error">{upload.DENIED}</span><!-- ELSEIF upload.ERROR_MSG --><span class="error">{upload.ERROR_MSG}</span><!-- ELSE --><span class="success">{L_SUCCESSFULLY_UPLOADED}</span><!-- ENDIF -->
<!-- IF upload.S_DENIED --><span class="error">{upload.L_DENIED}</span><!-- ELSEIF upload.ERROR_MSG --><span class="error">{upload.ERROR_MSG}</span><!-- ELSE --><span class="success">{L_SUCCESSFULLY_UPLOADED}</span><!-- ENDIF -->
<br /><br />
<!-- END upload -->

View File

@@ -31,11 +31,11 @@
</fieldset>
<fieldset>
<legend>{L_BBCODE_HELPLINE}</legend>
<p>{L_BBCODE_HELPLINE_EXPLAIN}</p>
<legend>{{ lang('BBCODE_HELPLINE') }}</legend>
<p>{{ lang('BBCODE_HELPLINE_EXPLAIN') }}</p>
<dl>
<dt><label for="bbcode_helpline">{L_BBCODE_HELPLINE_TEXT}</label></dt>
<dd><input type="text" id="bbcode_helpline" name="bbcode_helpline" size="60" maxlength="255" value="{BBCODE_HELPLINE}" /></dd>
<dt><label for="bbcode_helpline">{{ lang('BBCODE_HELPLINE_TEXT') }}</label></dt>
<dd><textarea id="bbcode_helpline" name="bbcode_helpline" cols="60" rows="4">{{ BBCODE_HELPLINE }}</textarea></dd>
</dl>
</fieldset>

View File

@@ -58,7 +58,6 @@
<dl>
<dt><label for="type">{L_BACKUP_TYPE}{L_COLON}</label></dt>
<dd><label><input type="radio" class="radio" name="type" value="full" id="type" checked="checked" /> {L_FULL_BACKUP}</label>
<label><input type="radio" name="type" class="radio" value="structure" /> {L_STRUCTURE_ONLY}</label>
<label><input type="radio" class="radio" name="type" value="data" /> {L_DATA_ONLY}</label></dd>
</dl>
<dl>

View File

@@ -105,7 +105,7 @@
<!-- BEGIN items -->
<tr>
<td style="text-align: center;"><img src="{items.IMG_SRC}" alt="{items.TEXT_ALT}" title="{items.TEXT_ALT}" /><input type="hidden" name="image[{items.IMG}]" value="1" /></td>
<td style="text-align: center;"><img src="{items.IMG_SRC}" alt="{items.TEXT_ALT}" title="{items.TEXT_ALT}" style="max-width: 160px;"><input type="hidden" name="image[{items.IMG}]" value="1" /></td>
<td style="vertical-align: top;">[{items.IMG}]</td>
<!-- IF S_SMILIES -->
<td><input class="text post" type="text" name="code[{items.IMG}]" value="{items.CODE}" size="10" maxlength="50" /></td>

View File

@@ -45,7 +45,7 @@
</tr>
<!-- BEGINELSE -->
<tr>
<td colspan="6" style="text-align: center;">{L_NO_INACTIVE_USERS}</td>
<td colspan="7" style="text-align: center;">{L_NO_INACTIVE_USERS}</td>
</tr>
<!-- END inactive -->
</tbody>

View File

@@ -78,6 +78,13 @@
<p>{L_ERROR_MBSTRING_HTTP_OUTPUT_EXPLAIN}</p>
</div>
<!-- ENDIF -->
{% if S_DEFAULT_CHARSET_FAIL %}
<div class="errorbox">
<h3>{{ lang('ERROR_DEFAULT_CHARSET') }}</h3>
<p>{{ lang('ERROR_DEFAULT_CHARSET_EXPLAIN') }}</p>
</div>
{% endif %}
<!-- ENDIF -->
<!-- IF S_WRITABLE_CONFIG -->
@@ -133,7 +140,6 @@
<td class="tabled"><strong>{{ PHP_VERSION_INFO }}</strong></td>
</tr>
<tr>
{% if S_TOTAL_ORPHAN %}
<td class="tabled">{{ lang('NUMBER_ORPHAN') ~ lang('COLON') }}</td>
<td class="tabled">
{% if TOTAL_ORPHAN > 0 %}
@@ -142,8 +148,6 @@
<strong>{{ TOTAL_ORPHAN }}</strong>
{% endif %}
</td>
{% else %}
{% endif %}
</tr>
{% if S_VERSIONCHECK %}
<tr>
@@ -197,10 +201,12 @@
<td class="tabled">{{ lang('FILES_PER_DAY') ~ lang('COLON') }}</td>
<td class="tabled"><strong>{{ FILES_PER_DAY }}</strong></td>
</tr>
{% if S_VERSIONCHECK %}
<tr>
<td class="tabled">&nbsp;</td>
<td class="tabled">&nbsp;</td>
</tr>
{% endif %}
</tbody>
</table>
</div>

View File

@@ -85,7 +85,7 @@
<!-- BEGIN ranks -->
<tr>
<!-- EVENT acp_ranks_list_column_before -->
<td style="text-align: center;"><!-- IF ranks.S_RANK_IMAGE --><img src="{ranks.RANK_IMAGE}" alt="{ranks.RANK_TITLE}" title="{ranks.RANK_TITLE}" /><!-- ELSE -->&nbsp; - &nbsp;<!-- ENDIF --></td>
<td style="text-align: center;"><!-- IF ranks.S_RANK_IMAGE --><img src="{ranks.RANK_IMAGE}" alt="{ranks.RANK_TITLE}" title="{ranks.RANK_TITLE}" style="max-width: 160px;"><!-- ELSE -->&nbsp; - &nbsp;<!-- ENDIF --></td>
<td style="text-align: center;">{ranks.RANK_TITLE}</td>
<td style="text-align: center;"><!-- IF ranks.S_SPECIAL_RANK -->&nbsp; - &nbsp;<!-- ELSE -->{ranks.MIN_POSTS}<!-- ENDIF --></td>
<!-- EVENT acp_ranks_list_column_after -->

View File

@@ -96,10 +96,10 @@
<thead>
<tr>
<th>{L_STYLE_NAME}</th>
<th width="10%" style="white-space: nowrap; text-align: center;">{{ lang('STYLE_VERSION') }}</th>
<th width="10%" style="white-space: nowrap; text-align: center;">{L_STYLE_PHPBB_VERSION}</th>
<!-- IF not STYLES_LIST_HIDE_COUNT --><th width="10%" style="white-space: nowrap; text-align: center;">{L_STYLE_USED_BY}</th><!-- ENDIF -->
<th width="25%" style="white-space: nowrap; text-align: center;">{L_ACTIONS}</th>
<th style="width: 10%; white-space: nowrap; text-align: center;">{{ lang('STYLE_VERSION') }}</th>
<th style="width: 10%; white-space: nowrap; text-align: center;">{L_STYLE_PHPBB_VERSION}</th>
<!-- IF not STYLES_LIST_HIDE_COUNT --><th style="width: 10%; white-space: nowrap; text-align: center;">{L_STYLE_USED_BY}</th><!-- ENDIF -->
<th style="width: 25%; white-space: nowrap; text-align: center;">{L_ACTIONS}</th>
{STYLES_LIST_EXTRA}
<th>&nbsp;</th>
</tr>
@@ -146,7 +146,7 @@
<!-- END actions -->
</td>
{styles_list.EXTRA}
<td class="{$ROW_CLASS} mark" width="20">
<td class="{$ROW_CLASS} mark" style="width: 20px;">
<!-- IF styles_list.STYLE_ID -->
{% if styles_list.STYLE_NAME !== 'prosilver' %}
<input class="checkbox" type="checkbox" name="ids[]" value="{styles_list.STYLE_ID}" />

View File

@@ -2738,4 +2738,29 @@ fieldset.permissions .padding {
height: 1em;
width: 1em;
}
.acp-icon {
font-size: 1.5em;
}
/* stylelint-enable declaration-property-unit-whitelist */
.acp-icon-move-up,
.acp-icon-move-down {
color: #4ba5de;
}
.acp-icon-settings {
color: #62c046;
}
.acp-icon-delete {
color: #d74558;
}
.acp-icon-resync {
color: #f69934;
}
.acp-icon-disabled {
color: #d0d0d0;
}

View File

@@ -254,5 +254,10 @@ function parse_document(container)
});
$('#configlist').closest('.send-stats-data-row').addClass('send-stats-data-hidden');
// Do not underline actions icons on hover (could not be done via CSS)
$('.actions a:has(i.acp-icon)').mouseover(function () {
$(this).css("text-decoration", "none");
});
});
})(jQuery);

View File

@@ -2,7 +2,6 @@
<a id="maincontent"></a>
<a href="<!-- IF U_LIST -->{U_LIST}<!-- ELSE -->{U_ACTION}<!-- ENDIF -->" style="float: {S_CONTENT_FLOW_END};">&laquo; {L_BACK}</a>
<h1>{L_QUESTIONS}</h1>
@@ -25,15 +24,18 @@
<td style="vertical-align: top; width: 50px; text-align: center; white-space: nowrap;">{L_ACTION}</td>
</tr>
</thead>
<tbody>
<!-- BEGIN questions -->
<tr>
<td style="text-align: left;">{questions.QUESTION_TEXT}</td>
<td style="text-align: center;">{questions.QUESTION_LANG}</td>
<td style="text-align: center;"><a href="{questions.U_EDIT}">{ICON_EDIT}</a>&nbsp;<a href="{questions.U_DELETE}">{ICON_DELETE}</a></td>
</tr>
<!-- END questions -->
{% for question in questions %}
<tr>
{# RTL is already managed by CSS #}
<td>{{ question.QUESTION_TEXT }}</td>
<td style="text-align: center;">{{ question.QUESTION_LANG }}</td>
<td style="text-align: center;"><a href="{{ question.U_EDIT }}">{{ ICON_EDIT }}</a> <a href="{{ question.U_DELETE }}">{{ ICON_DELETE }}</a></td>
</tr>
{% endfor %}
</tbody>
</table>
<fieldset class="quick">
<input class="button1" type="submit" name="add" value="{L_ADD}" />

View File

@@ -23,7 +23,7 @@ installLang = {
</script>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.5.1.min.js">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.6.0.min.js">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS admin.js -->
{$SCRIPTS}

View File

@@ -24,7 +24,7 @@
<div id="phpbb_alert" class="phpbb_alert" data-l-err="{L_ERROR}" data-l-timeout-processing-req="{L_TIMEOUT_PROCESSING_REQ}">
<a href="#" class="alert_close"></a>
<h3 class="alert_title"></h3><p class="alert_text"></p>
<h3 class="alert_title">&nbsp;</h3><p class="alert_text"></p>
</div>
<div id="phpbb_confirm" class="phpbb_alert">
<a href="#" class="alert_close"></a>
@@ -34,7 +34,7 @@
</div>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.5.1.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.6.0.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- INCLUDEJS ajax.js -->
<!-- INCLUDEJS admin.js -->

View File

@@ -12,10 +12,10 @@
<script>
// <![CDATA[
var jump_page = '{LA_JUMP_PAGE}{L_COLON}';
var on_page = '{CURRENT_PAGE}';
var per_page = '{PER_PAGE}';
var base_url = '{BASE_URL|e('js')}';
var jump_page = "{{ lang_js('JUMP_PAGE') ~ lang_js('COLON') }}";
var on_page = '{{ CURRENT_PAGE }}';
var per_page = '{{ PER_PAGE }}';
var base_url = "{{ BASE_URL|e('js') }}";
/**
* Jump to page

View File

@@ -17,7 +17,7 @@
</div>
<script src="{T_JQUERY_LINK}"></script>
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.5.1.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<!-- IF S_ALLOW_CDN --><script>window.jQuery || document.write('\x3Cscript src="{T_ASSETS_PATH}/javascript/jquery-3.6.0.min.js?assets_version={T_ASSETS_VERSION}">\x3C/script>');</script><!-- ENDIF -->
<script src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script>
<!-- EVENT acp_simple_footer_after -->

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -96,6 +96,8 @@ include($phpbb_root_path . 'includes/functions_compatibility.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
// Registered before building the container so the development environment stay capable of intercepting
// the container builder exceptions.
if (PHPBB_ENVIRONMENT === 'development')
{
\phpbb\debug\debug::enable();
@@ -129,6 +131,11 @@ catch (InvalidArgumentException $e)
}
}
if ($phpbb_container->getParameter('debug.error_handler'))
{
\phpbb\debug\debug::enable();
}
$phpbb_class_loader->set_cache($phpbb_container->get('cache.driver'));
$phpbb_class_loader_ext->set_cache($phpbb_container->get('cache.driver'));

View File

@@ -15,8 +15,9 @@
"support": {
"issues": "https://tracker.phpbb.com",
"forum": "https://www.phpbb.com/community/",
"wiki": "https://wiki.phpbb.com",
"irc": "irc://irc.freenode.org/phpbb"
"docs": "https://www.phpbb.com/support/docs/",
"irc": "irc://irc.libera.chat/phpbb",
"chat": "https://www.phpbb.com/support/chat/"
},
"scripts": {
"post-update-cmd": "echo 'You MUST manually modify the clean-vendor-dir target in build/build.xml when adding or upgrading dependencies.'"
@@ -29,11 +30,11 @@
"ext-json": "*",
"ext-mbstring": "*",
"bantu/ini-get-wrapper": "~1.0",
"composer/package-versions-deprecated": "^1.11",
"google/recaptcha": "~1.1",
"guzzlehttp/guzzle": "~6.3",
"lusitanian/oauth": "^0.8.1",
"marc1706/fast-image-size": "^1.1",
"patchwork/utf8": "^1.1",
"s9e/text-formatter": "^2.0",
"symfony/config": "~3.4",
"symfony/console": "~3.4",
@@ -44,7 +45,9 @@
"symfony/finder": "~3.4",
"symfony/http-foundation": "~3.4",
"symfony/http-kernel": "~3.4",
"symfony/polyfill-intl-idn": "~1.17.0",
"symfony/polyfill-intl-normalizer": "^1.23",
"symfony/polyfill-mbstring": "^1.23",
"symfony/polyfill-php72": "^1.23",
"symfony/process": "^3.4",
"symfony/proxy-manager-bridge": "~3.4",
"symfony/routing": "~3.4",

1708
phpBB/composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -40,6 +40,7 @@ services:
- '@cache.driver'
- '@config'
- '@dbal.conn'
- '@dispatcher'
- '%core.root_path%'
- '%core.php_ext%'

View File

@@ -6,6 +6,7 @@ services:
- '@routing.helper'
- '%core.root_path%'
- '%core.php_ext%'
- '@template'
cron.lock_db:
class: phpbb\lock\db

View File

@@ -73,6 +73,7 @@ services:
class: phpbb\textreparser\plugins\poll_option
arguments:
- '@dbal.conn'
- '%tables.poll_options%'
calls:
- [set_name, [poll_option]]
tags:

View File

@@ -11,6 +11,7 @@ core:
sql_explain: true
memory: true
show_errors: true
error_handler: true
twig:
debug: true

View File

@@ -18,7 +18,7 @@
* If you overwrite the original schema files please make sure you save the file with UNIX linefeeds.
*/
$schema_path = dirname(__FILE__) . '/../install/schemas/';
$schema_path = __DIR__ . '/../install/schemas/';
$supported_dbms = array(
'mssql',
'mysql_41',
@@ -34,7 +34,7 @@ if (!is_writable($schema_path))
}
define('IN_PHPBB', true);
$phpbb_root_path = dirname(__FILE__) . '/../';
$phpbb_root_path = __DIR__ . '/../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'vendor/autoload.php');

View File

@@ -220,7 +220,7 @@ foreach ($files_to_parse as $file_num => $data)
{
$_var = str_replace(array('{', '}'), array('', ''), $var);
$lang_references[$_var][] = $data['single_filename'];
$lang_data .= '<li>' . $var . '<br>' . "\n" . ((isset($lang[$_var])) ? htmlspecialchars(str_replace("\\'", "'", $lang[$_var])) : '<span style="color:red">No Language Variable available</span>') . '<br></li><br>' . "\n";
$lang_data .= '<li>' . $var . '<br>' . "\n" . ((isset($lang[$_var])) ? htmlspecialchars(str_replace("\\'", "'", $lang[$_var]), ENT_COMPAT) : '<span style="color:red">No Language Variable available</span>') . '<br></li><br>' . "\n";
}
}
$lang_data .= '</ul>';

View File

@@ -0,0 +1,126 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if (php_sapi_name() != 'cli')
{
die("This program must be run from the command line.\n");
}
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = __DIR__ . '/../';
define('IN_PHPBB', true);
function usage()
{
echo "Usage: export_events_for_bbcode.php COMMAND [VERSION] [EXTENSION]\n";
echo "\n";
echo "COMMAND:\n";
echo " diff:\n";
echo " Generate the Event Diff for the release highlights\n";
echo "\n";
echo " php:\n";
echo " Generate the PHP event section of Event_List\n";
echo "\n";
echo " adm:\n";
echo " Generate the ACP Template event section of Event_List\n";
echo "\n";
echo " styles:\n";
echo " Generate the Styles Template event section of Event_List\n";
echo "\n";
echo "VERSION (diff only):\n";
echo " Filter events (minimum version)\n";
echo "\n";
echo "EXTENSION (Optional):\n";
echo " If not given, only core events will be exported.\n";
echo " Otherwise only events from the extension will be exported.\n";
echo "\n";
exit(2);
}
function validate_argument_count($arguments, $count)
{
if ($arguments <= $count)
{
usage();
}
}
validate_argument_count($argc, 1);
$action = $argv[1];
$extension = isset($argv[2]) ? $argv[2] : null;
$min_version = null;
require __DIR__ . '/../phpbb/event/php_exporter.' . $phpEx;
require __DIR__ . '/../phpbb/event/md_exporter.' . $phpEx;
require __DIR__ . '/../phpbb/event/rst_exporter.' . $phpEx;
require __DIR__ . '/../includes/functions.' . $phpEx;
require __DIR__ . '/../phpbb/event/recursive_event_filter_iterator.' . $phpEx;
require __DIR__ . '/../phpbb/recursive_dot_prefix_filter_iterator.' . $phpEx;
switch ($action)
{
case 'diff':
echo "[size=200]Event changes[/size]\n\n";
$min_version = $extension;
$extension = isset($argv[3]) ? $argv[3] : null;
case 'php':
$exporter = new \phpbb\event\php_exporter($phpbb_root_path, $extension, $min_version);
$exporter->crawl_phpbb_directory_php();
echo $exporter->export_events_for_bbcode($action);
if ($action === 'php')
{
break;
}
echo "\n\n";
// no break;
case 'styles':
$exporter = new \phpbb\event\md_exporter($phpbb_root_path, $extension, $min_version);
if ($min_version && $action === 'diff')
{
$exporter->crawl_eventsmd('docs/events.md', 'styles');
}
else
{
$exporter->crawl_phpbb_directory_styles('docs/events.md');
}
echo $exporter->export_events_for_bbcode($action);
if ($action === 'styles')
{
break;
}
echo "\n\n";
// no break;
case 'adm':
$exporter = new \phpbb\event\md_exporter($phpbb_root_path, $extension, $min_version);
if ($min_version && $action === 'diff')
{
$exporter->crawl_eventsmd('docs/events.md', 'adm');
}
else
{
$exporter->crawl_phpbb_directory_adm('docs/events.md');
}
echo $exporter->export_events_for_bbcode($action);
echo "\n";
break;
default:
usage();
}

View File

@@ -0,0 +1,140 @@
<?php
/**
*
* This file is part of the phpBB Forum Software package.
*
* @copyright (c) phpBB Limited <https://www.phpbb.com>
* @license GNU General Public License, version 2 (GPL-2.0)
*
* For full copyright and license information, please see
* the docs/CREDITS.txt file.
*
*/
if (php_sapi_name() != 'cli')
{
die("This program must be run from the command line.\n");
}
$phpEx = substr(strrchr(__FILE__, '.'), 1);
$phpbb_root_path = __DIR__ . '/../';
define('IN_PHPBB', true);
function usage()
{
echo "Usage: export_events_for_rst.php COMMAND [VERSION] [EXTENSION]\n";
echo "\n";
echo "COMMAND:\n";
echo " all:\n";
echo " Generate the complete rst for the Event List\n";
echo "\n";
echo " diff:\n";
echo " Generate the Event Diff for the release highlights\n";
echo "\n";
echo " php:\n";
echo " Generate the PHP event section of Event_List\n";
echo "\n";
echo " adm:\n";
echo " Generate the ACP Template event section of Event_List\n";
echo "\n";
echo " styles:\n";
echo " Generate the Styles Template event section of Event_List\n";
echo "\n";
echo "VERSION (diff only):\n";
echo " Filter events (minimum version)\n";
echo "\n";
echo "EXTENSION (Optional):\n";
echo " If not given, only core events will be exported.\n";
echo " Otherwise only events from the extension will be exported.\n";
echo "\n";
exit(2);
}
function validate_argument_count($arguments, $count)
{
if ($arguments <= $count)
{
usage();
}
}
validate_argument_count($argc, 1);
$action = $argv[1];
$extension = isset($argv[2]) ? $argv[2] : null;
$min_version = null;
require __DIR__ . '/../phpbb/event/php_exporter.' . $phpEx;
require __DIR__ . '/../phpbb/event/md_exporter.' . $phpEx;
require __DIR__ . '/../phpbb/event/rst_exporter.' . $phpEx;
require __DIR__ . '/../includes/functions.' . $phpEx;
require __DIR__ . '/../phpbb/event/recursive_event_filter_iterator.' . $phpEx;
require __DIR__ . '/../phpbb/recursive_dot_prefix_filter_iterator.' . $phpEx;
switch ($action)
{
case 'diff':
echo '== Event changes ==' . "\n";
echo "Event changes\n";
echo "=============\n\n";
$min_version = $extension;
$extension = isset($argv[3]) ? $argv[3] : null;
case 'all':
if ($action === 'all')
{
echo "==========================\n";
echo "Events List\n";
echo "==========================\n\n";
}
case 'php':
$exporter = new \phpbb\event\php_exporter($phpbb_root_path, $extension, $min_version);
$exporter->crawl_phpbb_directory_php();
echo $exporter->export_events_for_rst($action);
if ($action === 'php')
{
break;
}
echo "\n\n";
// no break;
case 'styles':
$exporter = new \phpbb\event\md_exporter($phpbb_root_path, $extension, $min_version);
if ($min_version && $action === 'diff')
{
$exporter->crawl_eventsmd('docs/events.md', 'styles');
}
else
{
$exporter->crawl_phpbb_directory_styles('docs/events.md');
}
echo $exporter->export_events_for_rst($action);
if ($action === 'styles')
{
break;
}
echo "\n\n";
// no break;
case 'adm':
$exporter = new \phpbb\event\md_exporter($phpbb_root_path, $extension, $min_version);
if ($min_version && $action === 'diff')
{
$exporter->crawl_eventsmd('docs/events.md', 'adm');
}
else
{
$exporter->crawl_phpbb_directory_adm('docs/events.md');
}
echo $exporter->export_events_for_rst($action);
echo "\n";
break;
default:
usage();
}

View File

@@ -290,7 +290,7 @@ function dump_code($code, $filename = 'file.txt')
$list = explode("\n", $code);
$height = 15 * count($list);
echo ' [ <a href="?download=', $hash, '">download</a> <a href="javascript:void(0);" onclick="document.getElementById(\'code-', $hash, '\').style.height = \'', $height, 'px\'; this.style.display = \'none\'; return false;">expand</a> ]<br />';
echo '<textarea id="code-', $hash, '" onfocus="this.select();" style="width: 98%; height: 200px;">', htmlspecialchars($code), '</textarea><br />';
echo '<textarea id="code-', $hash, '" onfocus="this.select();" style="width: 98%; height: 200px;">', htmlspecialchars($code, ENT_COMPAT), '</textarea><br />';
}
function css($list, $path = './', $bidi = false)

View File

@@ -34,7 +34,7 @@ $mode = $request->variable('mode', '');
$modules = find_modules($phpbb_root_path . 'language/en');
$kkeys = $keys = array();
$langdir = dirname(__FILE__);
$langdir = __DIR__;
if (isset($lang))
{

View File

@@ -191,4 +191,3 @@ foreach ($iterator as $file)
file_put_contents($file->getPathname(), $code);
}
}

View File

@@ -2,7 +2,7 @@
/**
* Rebuild BOTS
*
* You should make a backup from your whole database. Things can and will go wrong.
* You should make a backup from your whole database. Things can and will go wrong.
* This will only work if no BOTs were added.
*
*/
@@ -24,10 +24,14 @@ $user->setup();
$bots = array(
'AdsBot [Google]' => array('AdsBot-Google', ''),
'Ahrefs [Bot]' => array('AhrefsBot/', ''),
'Alexa [Bot]' => array('ia_archiver', ''),
'Alta Vista [Bot]' => array('Scooter/', ''),
'Amazon [Bot]' => array('Amazonbot/', ''),
'Ask Jeeves [Bot]' => array('Ask Jeeves', ''),
'Baidu [Spider]' => array('Baiduspider+(', ''),
'Baidu [Spider]' => array('Baiduspider', ''),
'Bing [Bot]' => array('bingbot/', ''),
'DuckDuckGo [Bot]' => array('DuckDuckBot/', ''),
'Exabot [Bot]' => array('Exabot/', ''),
'FAST Enterprise [Crawler]' => array('FAST Enterprise Crawler', ''),
'FAST WebCrawler [Crawler]' => array('FAST-WebCrawler/', ''),
@@ -41,7 +45,7 @@ $bots = array(
'Heritrix [Crawler]' => array('heritrix/1.', ''),
'IBM Research [Bot]' => array('ibm.com/cs/crawler', ''),
'ICCrawler - ICjobs' => array('ICCrawler - ICjobs', ''),
'ichiro [Crawler]' => array('ichiro/2', ''),
'ichiro [Crawler]' => array('ichiro/', ''),
'Majestic-12 [Bot]' => array('MJ12bot/', ''),
'Metager [Bot]' => array('MetagerBot/', ''),
'MSN NewsBlogs' => array('msnbot-NewsBlogs/', ''),
@@ -54,6 +58,7 @@ $bots = array(
'Online link [Validator]' => array('online link validator', ''),
'psbot [Picsearch]' => array('psbot/0', ''),
'Seekport [Bot]' => array('Seekbot/', ''),
'Semrush [Bot]' => array('SemrushBot/', ''),
'Sensis [Crawler]' => array('Sensis Web Crawler', ''),
'SEO Crawler' => array('SEO search Crawler/', ''),
'Seoma [Crawler]' => array('Seoma [SEO Crawler]', ''),
@@ -63,7 +68,7 @@ $bots = array(
'Synoo [Bot]' => array('SynooBot/', ''),
'Telekom [Bot]' => array('crawleradmin.t-info@telekom.de', ''),
'TurnitinBot [Bot]' => array('TurnitinBot/', ''),
'Voyager [Bot]' => array('voyager/1.0', ''),
'Voyager [Bot]' => array('voyager/', ''),
'W3 [Sitesearch]' => array('W3 SiteSearch Crawler', ''),
'W3C [Linkcheck]' => array('W3C-checklink/', ''),
'W3C [Validator]' => array('W3C_*Validator', ''),
@@ -74,7 +79,7 @@ $bots = array(
'Yahoo [Bot]' => array('Yahoo! Slurp', ''),
'YahooSeeker [Bot]' => array('YahooSeeker/', ''),
);
$bot_ids = array();
user_get_id_name($bot_ids, array_keys($bots), USER_IGNORE);
foreach($bot_ids as $bot)

View File

@@ -50,6 +50,15 @@
<ol>
<li><a href="#changelog">Changelog</a>
<ul>
<li><a href="#v337">Changes since 3.3.7</a></li>
<li><a href="#v336">Changes since 3.3.6</a></li>
<li><a href="#v336rc1">Changes since 3.3.6-RC1</a></li>
<li><a href="#v335">Changes since 3.3.5</a></li>
<li><a href="#v335rc1">Changes since 3.3.5-RC1</a></li>
<li><a href="#v334">Changes since 3.3.4</a></li>
<li><a href="#v334rc1">Changes since 3.3.4-RC1</a></li>
<li><a href="#v333">Changes since 3.3.3</a></li>
<li><a href="#v332">Changes since 3.3.2</a></li>
<li><a href="#v331">Changes since 3.3.1</a></li>
<li><a href="#v331rc1">Changes since 3.3.1-RC1</a></li>
<li><a href="#v330">Changes since 3.3.0</a></li>
@@ -57,6 +66,7 @@
<li><a href="#v330b2">Changes since 3.3.0-b2</a></li>
<li><a href="#v330b1">Changes since 3.3.0-b1</a></li>
<li><a href="#v32x">Changes since 3.2.x</a></li>
<li><a href="#v3210">Changes since 3.2.10</a></li>
<li><a href="#v3210rc2">Changes since 3.2.10-RC2</a></li>
<li><a href="#v3210rc1">Changes since 3.2.10-RC1</a></li>
<li><a href="#v329">Changes since 3.2.9</a></li>
@@ -152,6 +162,276 @@
<div class="inner">
<div class="content">
<a name="v337"></a><h3>Changes since 3.3.7</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-13821">PHPBB3-13821</a>] - Always show &quot;Display this post&quot; for foes</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16871">PHPBB3-16871</a>] - S_FORUM_ID and S_TOPIC_ID variables set by page_header may cause fatal errors in feeds</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16891">PHPBB3-16891</a>] - Controller Helper Routing in ACP can break Extension Installation</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16960">PHPBB3-16960</a>] - Migrations table not populated at the end of installation</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16962">PHPBB3-16962</a>] - Possible bug related with format date</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16966">PHPBB3-16966</a>] - &quot;Insecure redirect&quot; error while permanently deleting posts</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16976">PHPBB3-16976</a>] - phpBB Native Search returns 1 match and one page of results</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16977">PHPBB3-16977</a>] - Cron-job &quot;img&quot; tag at bottom breaks some styles and is inaccessible</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16978">PHPBB3-16978</a>] - &lt;/ul&gt; Tag Missing From posting_pm_header.html Template</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16981">PHPBB3-16981</a>] - HTML-encoded emojis `&amp;#128396; &amp;#128208;` in email subject line</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16990">PHPBB3-16990</a>] - Wrong style template code in the post editor prevents deleting a post with certain permission combination</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-13859">PHPBB3-13859</a>] - Youtube profilefield needs an upgrade</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15947">PHPBB3-15947</a>] - &quot;X out of 0 messages stored&quot; in UCP</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16800">PHPBB3-16800</a>] - Language string NO_POSTS should be changed</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16959">PHPBB3-16959</a>] - Remove redundant URL parameters from notification mails</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16967">PHPBB3-16967</a>] - Deprecate use of PHP and INCLUDEPHP in templates</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16969">PHPBB3-16969</a>] - Flash status displays when posting when posts settings don't allow [FLASH] - BBCode</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16988">PHPBB3-16988</a>] - Ignore appended branch info when preparing commit message</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16991">PHPBB3-16991</a>] - Add events for bookmarks and subscribed topics in UCP</li>
</ul>
<a name="v336"></a><h3>Changes since 3.3.6</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16973">PHPBB3-16973</a>] - Remove orphaned roles migration may incorrectly remove role-based group permissions</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16972">PHPBB3-16972</a>] - Rename subtype to advanced_update in package.json generation</li>
</ul>
<a name="v336rc1"></a><h3>Changes since 3.3.6-RC1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16872">PHPBB3-16872</a>] - Create event exporter to BBCode</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16956">PHPBB3-16956</a>] - White screen after disable extention</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15028">PHPBB3-15028</a>] - Change update instructions in ACP</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16964">PHPBB3-16964</a>] - Update composer and composer dependencies to latest versions</li>
</ul>
<h4>Hardening</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/SECURITY-272">SECURITY-272</a>] - Use longer random string for activation key</li>
<li>[<a href="https://tracker.phpbb.com/browse/SECURITY-273">SECURITY-273</a>] - Reset reset token info when re-activating account</li>
</ul>
<a name="v335"></a><h3>Changes since 3.3.5</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16881">PHPBB3-16881</a>] - Fix ACP Statistic Table</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16883">PHPBB3-16883</a>] - Check if var is array before using count in installer diff</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16887">PHPBB3-16887</a>] - Update required PHP version</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16889">PHPBB3-16889</a>] - Postgres on windows builds keep failing</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16892">PHPBB3-16892</a>] - Duplicate entry for jav files in extension guesser</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16895">PHPBB3-16895</a>] - 'Permission' migration tool incorrectly handles role removal</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16897">PHPBB3-16897</a>] - sqlite3 drivers generates warnings when executing an explain query plan that fails</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16900">PHPBB3-16900</a>] - Invalid email subject header on long topic titles</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16904">PHPBB3-16904</a>] - Regression for topic selection in MCP in 3.3.5</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16908">PHPBB3-16908</a>] - PHP warning on non-existent post id requests</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16910">PHPBB3-16910</a>] - PHP warning if trying to attach orphaned files to non existent posts</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16914">PHPBB3-16914</a>] - Missing id in memberlist email template</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16924">PHPBB3-16924</a>] - Double escaping of config values inserted with db config</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-13508">PHPBB3-13508</a>] - Support using INCLUDEJS and INCLUDECSS in twig template format</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16828">PHPBB3-16828</a>] - Add hook event before find_users_for_notification() execute</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16859">PHPBB3-16859</a>] - Language selection option is displayed on register if only 1 language is installed</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16885">PHPBB3-16885</a>] - Add filters to Twig - INT and FLOAT</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16888">PHPBB3-16888</a>] - Add the list of allowed attachment types using accept attribute </li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16896">PHPBB3-16896</a>] - Improve .gitignore visibility</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16898">PHPBB3-16898</a>] - Do not restrict the debug error handler to the development environment</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16899">PHPBB3-16899</a>] - Add SVG and WEBP image type to ranks, smilies and topic icons</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16902">PHPBB3-16902</a>] - Improve search results count for MySQL</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16909">PHPBB3-16909</a>] - Add PHP 8.2 builds to test matrix</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16912">PHPBB3-16912</a>] - Improve mail encoding to better match RFC 2047</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16921">PHPBB3-16921</a>] - Increase PHP requirements in the DOCS</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16930">PHPBB3-16930</a>] - Remove redundant topic ID from last post URL</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16933">PHPBB3-16933</a>] - Inconsistent handling of hyphen by phpBB Native search backend</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16939">PHPBB3-16939</a>] - Wait for postgres service to start in GitHub Actions windows builds</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16940">PHPBB3-16940</a>] - Optimize phpBB Native Search</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16927">PHPBB3-16927</a>] - Update plupload to latest version</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16928">PHPBB3-16928</a>] - Update composer and composer dependencies to latest versions</li>
</ul>
<a name="v335rc1"></a><h3>Changes since 3.3.5-RC1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16878">PHPBB3-16878</a>] - Error in password_hash() with ARGON2 + Sodium &amp; threadcount &gt; 1</li>
</ul>
<h4>Hardening</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/SECURITY-254">SECURITY-254</a>] - Disallow whitespace characters that might be invisible</li>
</ul>
<a name="v334"></a><h3>Changes since 3.3.4</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-12075">PHPBB3-12075</a>] - Language file Modules needs to be added to acp_extensions</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-13700">PHPBB3-13700</a>] - Column 'field_show_on_pm' not created before migration profilefield_interests</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16292">PHPBB3-16292</a>] - Database errors during conversion not propagated</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16570">PHPBB3-16570</a>] - Automatic updater no longer handles merge conflicts</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16657">PHPBB3-16657</a>] - Encoded characters inserted from live search for usernames</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16729">PHPBB3-16729</a>] - Unknown named parameter $log_data in phpbb/log/log.php</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16730">PHPBB3-16730</a>] - Build changelog throwing PHP warnings on no changes in version</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16749">PHPBB3-16749</a>] - SQL error on installation</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16757">PHPBB3-16757</a>] - RTL problem in random question text in ACP</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16765">PHPBB3-16765</a>] - contact_admin_acp_module migration lacks effectively_installed check</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16766">PHPBB3-16766</a>] - Updater only shows truncated error messages</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16767">PHPBB3-16767</a>] - Migrator shows wrong migration as missing if unfulfillable</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16770">PHPBB3-16770</a>] - Invalid position of static qualifier in 3.3.4 migration</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16772">PHPBB3-16772</a>] - Emoji not supported in email signature</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16773">PHPBB3-16773</a>] - PostgreSQL backups are missing constraint declarations</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16784">PHPBB3-16784</a>] - Ignore .vscode files in git</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16785">PHPBB3-16785</a>] - Latest release missing from previous versions in build.xml</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16787">PHPBB3-16787</a>] - Error message when &quot;fsockopen&quot; is deactivated</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16789">PHPBB3-16789</a>] - user_delete documentation incorrect</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16793">PHPBB3-16793</a>] - PHP Warning when checking topic/post attachment visibility in PHP 8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16799">PHPBB3-16799</a>] - OAuth external account linking triggers fatal error on PHP 8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16808">PHPBB3-16808</a>] - Container used before initialization causes error in PHP8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16810">PHPBB3-16810</a>] - The no closing tag in Custom BBCodes is still shown onclick</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16812">PHPBB3-16812</a>] - login_body.html missing dt tag for autologin</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16823">PHPBB3-16823</a>] - Datetime class incorrectly handles edge yesterday/today/tomorrow cases</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16832">PHPBB3-16832</a>] - Wrong singular language shown in UCP attachments</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16865">PHPBB3-16865</a>] - Update IRC + discord links in composer and documentation and update docs</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16870">PHPBB3-16870</a>] - Setting float config value can fail with CLI db:migrate</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15729">PHPBB3-15729</a>] - Don't unnecessarily encode email headers in Base64</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15925">PHPBB3-15925</a>] - Add core events for sync and mcp functions</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16138">PHPBB3-16138</a>] - Eliminate redundant f= and t= parameters from board urls</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16736">PHPBB3-16736</a>] - Enforce placement of visibility qualifiers after static</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16748">PHPBB3-16748</a>] - Update coding guidelines to place static after visibility qualifiers</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16752">PHPBB3-16752</a>] - Create event exporter to restructured text</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16754">PHPBB3-16754</a>] - Update doctum</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16771">PHPBB3-16771</a>] - Add core events to MCP</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16783">PHPBB3-16783</a>] - Remove structure only backup</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16788">PHPBB3-16788</a>] - Update s9e/text-formatter to latest</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16795">PHPBB3-16795</a>] - Add template events around signature in viewtopic</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16798">PHPBB3-16798</a>] - Scale down phpBB logo in readme</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16804">PHPBB3-16804</a>] - Extend bbcode help line tooltip</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16809">PHPBB3-16809</a>] - Reset UCP preferences at end of test</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16816">PHPBB3-16816</a>] - acp style html validation fixes</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16822">PHPBB3-16822</a>] - Replace patchwork/utf8 with symfony/polyfill</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16829">PHPBB3-16829</a>] - Add forumtitle and lastsubject text decoration hover</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16831">PHPBB3-16831</a>] - fix tabs missing delimiters and remove old commented classes</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16850">PHPBB3-16850</a>] - Update webfont.js to latest</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16851">PHPBB3-16851</a>] - Add Amazonbot, AhrefsBot and SemrushBot</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16858">PHPBB3-16858</a>] - Update to the latest version of jQuery 3.6.0</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16867">PHPBB3-16867</a>] - Update symfony and text-formatter to latest versions</li>
</ul>
<h4>New Feature</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16856">PHPBB3-16856</a>] - Add lang_js() function to twig as replacement for LA_</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16769">PHPBB3-16769</a>] - Update composer to latest version</li>
</ul>
<a name="v334rc1"></a><h3>Changes since 3.3.4-RC1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16735">PHPBB3-16735</a>] - Trying to access array offset on value of type bool</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16739">PHPBB3-16739</a>] - Wrong variable in report_pm.txt subject</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16740">PHPBB3-16740</a>] - Installation errors in php 8 when using postgresql</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16743">PHPBB3-16743</a>] - Properly check if TMP file exists - PHP 8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16747">PHPBB3-16747</a>] - Typo in phpBB/language/en/email/post_in_queue.txt </li>
</ul>
<a name="v333"></a><h3>Changes since 3.3.3</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16655">PHPBB3-16655</a>] - Suppress &quot;you now also have to pass the CAPTCHA test&quot; message for invisible CAPTCHAs</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16685">PHPBB3-16685</a>] - SQL error in ACP if database name contains a dash</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16690">PHPBB3-16690</a>] - Changing default argument in htmlspecialchars* functions causes test fail</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16691">PHPBB3-16691</a>] - Illegal string offset 'username' on MCP PM report pages</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16696">PHPBB3-16696</a>] - Unsupported operand types in viewforum.php - PHP8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16697">PHPBB3-16697</a>] - Unable to login after conversion from phpBB2</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16698">PHPBB3-16698</a>] - Check for default char set in includes/acp_main.php checks only for 'UTF-8'</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16705">PHPBB3-16705</a>] - File upload fails with PHP 8 - Error parsing server response</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16706">PHPBB3-16706</a>] - Undefined array key when user is banned</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16707">PHPBB3-16707</a>] - Disable unstable PHP 8.1 builds on Github Actions</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16719">PHPBB3-16719</a>] - PHP notice/warning on installation</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15392">PHPBB3-15392</a>] - Change dirname(__FILE__) to __DIR__ everywhere</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16589">PHPBB3-16589</a>] - Change wording of e-mail templates to decrease word count</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16620">PHPBB3-16620</a>] - Output short array syntax in dev:migration-tips</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16660">PHPBB3-16660</a>] - Remove or Rename &quot;Reset&quot; Button in &quot;Reset Password&quot; Dialogue </li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16681">PHPBB3-16681</a>] - Replace action icons with font icons</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16684">PHPBB3-16684</a>] - GitHub Actions should run on newly created tag and release branches</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16686">PHPBB3-16686</a>] - Simplify get_database_size() SQL query for PostgreSQL</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16689">PHPBB3-16689</a>] - Bitly oauth SQL error if identifier is null</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16709">PHPBB3-16709</a>] - Update s9e/text-formatter to latest release</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16710">PHPBB3-16710</a>] - Allow WEBP images in attachments</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16712">PHPBB3-16712</a>] - Implement thumbnails for WEBP images in attachments</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16724">PHPBB3-16724</a>] - Add some template events</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16725">PHPBB3-16725</a>] - Add MCP core event</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16728">PHPBB3-16728</a>] - Add search result template event</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16726">PHPBB3-16726</a>] - Update composer packages to latest versions</li>
</ul>
<a name="v332"></a><h3>Changes since 3.3.2</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16178">PHPBB3-16178</a>] - Container_builder and Container don't use the same cache_dir when cache dir is overridden via env parameter</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16535">PHPBB3-16535</a>] - Migration from phpBB 2.0.x broken with MySQL 8.x</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16582">PHPBB3-16582</a>] - SQL error when saving profile with empty custom field of type &quot;Numbers&quot;</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16619">PHPBB3-16619</a>] - Spelling on non-existant</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16629">PHPBB3-16629</a>] - ACP get_database_size() fails on MySql 8.0.xx</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16630">PHPBB3-16630</a>] - Preserve the text manipulation API</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16640">PHPBB3-16640</a>] - MCP link not showing in menubar</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16641">PHPBB3-16641</a>] - Failure in config.php validation in ACP (Windows) - PHP 8</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16646">PHPBB3-16646</a>] - PHP fatal error while installing</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16648">PHPBB3-16648</a>] - &quot;Access to undeclared static property&quot; error on setExpectedTriggerError() tests</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16653">PHPBB3-16653</a>] - Recaptcha v3 - Request method is set even though that default isn't actually available</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16656">PHPBB3-16656</a>] - Outdated check in code for mbstring http_input &amp; output</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16665">PHPBB3-16665</a>] - Fix Emoji for strings in board settings + new event</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16666">PHPBB3-16666</a>] - Windows tests in github actions can't write file in postgres</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16667">PHPBB3-16667</a>] - Remove unused create_schema install task</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16670">PHPBB3-16670</a>] - OAuth provider unique secret and key check fails on PHP 8 </li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16673">PHPBB3-16673</a>] - Invalid Atom feed</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16677">PHPBB3-16677</a>] - Event handlers inside dropdown containers not working in mobile view</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16679">PHPBB3-16679</a>] - Login form should respect setting for &quot;Allow password reset&quot;</li>
</ul>
<h4>Improvement</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15722">PHPBB3-15722</a>] - Allow forum topicrow pagination to use topicrow values</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16538">PHPBB3-16538</a>] - Add MySQL 8 tests</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16549">PHPBB3-16549</a>] - Use PHPUnit 9.3+ for PHP 8.0+ tests</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16606">PHPBB3-16606</a>] - UCP_PM_VIEWMESSAGE.HTML Event Request</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16607">PHPBB3-16607</a>] - Oracle DBAL driver uses obsoleted PHP OCI8 aliases and functions</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16617">PHPBB3-16617</a>] - Add events to modify content status variables</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16632">PHPBB3-16632</a>] - Update composer to version 2</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16636">PHPBB3-16636</a>] - Add PHP 8.0 builds to TravisCI</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16659">PHPBB3-16659</a>] - Use Github Actions instead of TravisCI and AppVeyor</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16661">PHPBB3-16661</a>] - Clean up github actions tasks after merge</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16675">PHPBB3-16675</a>] - Restore checking commit messages</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16676">PHPBB3-16676</a>] - Make Github actions cache composer dependendencies</li>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16678">PHPBB3-16678</a>] - Add support for Traits in code sniffer</li>
</ul>
<h4>New Feature</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-15951">PHPBB3-15951</a>] - Add core events to core.mcp_delete_topic_modify_*</li>
</ul>
<h4>Task</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB3-16633">PHPBB3-16633</a>] - Update pull request template after end of life of 3.2</li>
</ul>
<a name="v331"></a><h3>Changes since 3.3.1</h3>
<h4>Bug</h4>
<ul>
@@ -581,6 +861,16 @@
<li>[<a href="http://tracker.phpbb.com/browse/PHPBB3-16185">PHPBB3-16185</a>] - Use Xenial build environment on travis-ci</li>
</ul>
<a name="v3210"></a><h3>Changes since 3.2.10</h3>
<h4>Security Issue</h4>
<ul>
<li>[SECURITY-264] - Invalid conversion of HTML entities when stripping BBCode</li>
</ul>
<h4>Hardening</h4>
<ul>
<li>[SECURITY-265] - Reduce verbosity of jabber output in ACP</li>
</ul>
<a name="v3210rc2"></a><h3>Changes since 3.2.10-RC2</h3>
<h4>Bug</h4>
<ul>

View File

@@ -1,6 +1,6 @@
/**
*
* phpBB © Copyright phpBB Limited 2003-2020
* phpBB © Copyright phpBB Limited 2003-2021
* https://www.phpbb.com
*
* phpBB is free software. You can redistribute it and/or modify it

View File

@@ -64,7 +64,7 @@
<li><a href="#update_full">Full package</a></li>
<li><a href="#update_files">Changed files</a></li>
<li><a href="#update_patch">Patch file</a></li>
<li><a href="#update_auto">Automatic update package</a></li>
<li><a href="#update_advanced">Advanced update package</a></li>
<li><a href="#update_all">All package types</a></li>
</ol>
</li>
@@ -147,10 +147,11 @@
<li>Oracle</li>
</ul>
</li>
<li><strong>PHP 7.1.3+</strong> up to and including <strong>PHP 7.4</strong> with support for the database you intend to use.</li>
<li><strong>PHP 7.1.3+</strong> up to and including <strong>PHP 8.1</strong> with support for the database you intend to use.</li>
<li>The following PHP modules are required:
<ul>
<li>json</li>
<li>mbstring</li>
<li>XML support</li>
</ul>
</li>
@@ -290,7 +291,7 @@
<p>The patch file package is for those wanting to update through the patch application, and should only be used by those who are comfortable with it.</p>
<p>The patch file is one solution for those with changes in to the phpBB core files and do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type <strong>patch</strong> application. If you do not have access to such an application, but still want to use this update approach, we strongly recommend the <a href="#update_auto">Automatic update package</a> explained below. It is also the recommended update method.</p>
<p>The patch file is one solution for those with changes in to the phpBB core files and do not want to re-add them back to all the changed files. To use this you will need command line access to a standard UNIX type <strong>patch</strong> application. If you do not have access to such an application, but still want to use this update approach, we strongly recommend the <a href="#update_full">Full package update</a> explained above. It is also the recommended update method.</p>
<p>A number of patch files are provided to allow you to update from previous stable releases. Select the correct patch, e.g. if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.1-patch.zip/tar.bz2</code> file. Place the correct patch in the parent directory containing the phpBB core files (i.e. index.php, viewforum.php, etc.). With this done you should run the following command: <code>patch -cl -d [PHPBB DIRECTORY] -p1 &lt; [PATCH NAME]</code> (where PHPBB DIRECTORY is the directory name your phpBB Installation resides in, for example phpBB, and where PATCH NAME is the relevant filename of the selected patch file). This should complete quickly, hopefully without any HUNK FAILED comments.</p>
@@ -298,11 +299,13 @@
<p>You should, of course, delete the patch file (or files) after use. As for the other update procedures, you should navigate to <code>/install/app.php/update</code>, select "Update database only" and submit the page after you have finished updating the files. This will update your database schema and data (if appropriate) and increment the version number. If you have shell access to your server, you may wish to update via the command line interface. From your board's root, execute the following command: <code>php bin/phpbbcli.php --safe-mode db:migrate</code>.</p>
<a name="update_auto"></a><h3>4.iv. Automatic update package</h3>
<a name="update_advanced"></a><h3>4.iv. Advanced update package (Expert users)</h3>
<p>This update method is only recommended for installations with modifications to core phpBB files. This package detects changed files automatically and merges in changes if needed.</p>
<p>This update method should only be used for installations with modifications to core phpBB files. If you simply use Extensions or custom Styles and have not modified core files, please use the Full Package update.</p>
<p>The automatic update package will update the board from a given version to the latest version. A number of automatic update files are available, and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.0_to_3.3.1.zip/tar.bz2</code> file.</p>
<p>This package detects changed files and merges in changes if needed. Since this type of update has a potential to cause issues while upgrading, it should only be used by expert users.</p>
<p>The advanced update package will update the board from a given version to the latest version. A number of advanced update files are available, and you should choose the one that corresponds to the version of the board that you are currently running. For example, if your current version is <strong>3.3.0</strong>, you need the <code>phpBB-3.3.0_to_3.3.1.zip/tar.bz2</code> file.</p>
<p>To perform the update, either follow the instructions from the <strong>Administration Control Panel-&gt;System</strong> Tab - this should point out that you are running an outdated version and will guide you through the update - or follow the instructions listed below.</p>

View File

@@ -104,7 +104,7 @@
<ul>
<li>Updates from phpBB 3.0 RC1, 3.1 RC1 and 3.2 RC1 to the latest version</li>
<li>Note: if using the <em>Automatic Update Package</em>, updates are supported from phpBB 3.0.2 onward. To update a pre-3.0.2 installation, first update to 3.0.2 and then update to the current version.</li>
<li>Note: if using the <em>Advanced Update Package</em>, updates are supported from phpBB 3.0.2 onward. To update a pre-3.0.2 installation, first update to 3.0.2 and then update to the current version.</li>
<li>Conversions from phpBB 2.0.x to the latest version</li>
<li>New installations of phpBB 3.2.x - only the latest released version</li>
<li>New installations of phpBB 3.3.x - only the latest released version</li>
@@ -204,7 +204,7 @@
<a name="irc"></a><h3>3.iv Internet Relay Chat</h3>
<p>Another place you may find help is our IRC channel. This operates on the Freenode IRC network, <a href="irc://irc.freenode.net">irc.freenode.net</a> and the channel is <em>#phpbb</em> and can be accessed by any decent IRC client such as mIRC, XChat, etc. Again, please do not abuse this service and be respectful of other users.</p>
<p>Another place you may find help is our IRC channel. This operates on the Libera IRC network, <a href="irc://irc.libera.chat">irc.libera.chat</a> and the channel is <em>#phpbb</em> and can be accessed by any decent IRC client such as mIRC, XChat, etc. Again, please do not abuse this service and be respectful of other users.</p>
<p>There are other IRC channels available, please see <a href="https://www.phpbb.com/support/irc/">https://www.phpbb.com/support/irc/</a> for the complete list.</p>

View File

@@ -718,18 +718,18 @@ switch ($mode)
<h4>Class Members</h4>
<p>Use the explicit visibility qualifiers <code>public</code>, <code>private</code> and <code>protected</code> for all properties instead of <code>var</code>.
<p>Place the <code>static</code> qualifier before the visibility qualifiers.</p>
<p>Place the <code>static</code> qualifier after the visibility qualifiers.</p>
<p class="bad">//Wrong </p>
<div class="codebox"><pre>
var $x;
private static function f()</pre>
static private function f()</pre>
</div>
<p class="good">// Right </p>
<div class="codebox"><pre>
public $x;
static private function f()</pre>
private static function f()</pre>
</div>
<h4>Constants</h4>
@@ -1304,6 +1304,7 @@ parent = prosilver</pre>
</pre></div>
<h4>PHP</h4>
<p><strong class="error">The use of PHP in HTML files has been deprecated in phpBB 3.3 and will be removed in phpBB 4.0.</strong></p>
<p>A contentious decision has seen the ability to include PHP within the template introduced. This is achieved by enclosing the PHP within relevant tags:</p>
<div class="codebox"><pre>

View File

@@ -986,6 +986,34 @@ mcp_forum_actions_before
* Since: 3.1.11-RC1
* Purpose: Add some information before actions fieldset
mcp_forum_last_post_author_username_append
===
* Locations:
+ styles/prosilver/template/mcp_forum.html (2)
* Since: 3.3.4-RC1
* Purpose: Append information to last post author username of member
mcp_forum_last_post_author_username_prepend
===
* Locations:
+ styles/prosilver/template/mcp_forum.html (2)
* Since: 3.3.4-RC1
* Purpose: Prepend information to last post author username of member
mcp_forum_topic_author_username_append
===
* Locations:
+ styles/prosilver/template/mcp_forum.html
* Since: 3.3.4-RC1
* Purpose: Append information to topic author username of member
mcp_forum_topic_author_username_prepend
===
* Locations:
+ styles/prosilver/template/mcp_forum.html
* Since: 3.3.4-RC1
* Purpose: Prepend information to topic author username of member
mcp_forum_topic_title_after
===
* Locations:
@@ -2237,6 +2265,13 @@ search_results_header_before
* Since: 3.1.4-RC1
* Purpose: Add content before the header of the search results.
search_results_jumpbox_before
===
* Locations:
+ styles/prosilver/template/search_results.html
* Since: 3.3.4-RC1
* Purpose: Add content before the jumpbox of the search results.
search_results_last_post_author_username_append
===
* Locations:
@@ -2279,6 +2314,13 @@ search_results_post_before
* Since: 3.1.0-b3
* Purpose: Add data before search result posts
search_results_post_subject_before
===
* Locations:
+ styles/prosilver/template/search_results.html
* Since: 3.3.4-RC1
* Purpose: Add data before search result posts subject
search_results_postprofile_after
===
* Locations:
@@ -2328,6 +2370,20 @@ search_results_topic_before
* Since: 3.1.0-b4
* Purpose: Add data before search result topics
search_results_topic_header_lastpost_after
===
* Locations:
+ styles/prosilver/template/search_results.html
* Since: 3.3.4-RC1
* Purpose: Add header column(s) after `lastpost` column in search result topics
search_results_topic_row_lastpost_after
===
* Locations:
+ styles/prosilver/template/search_results.html
* Since: 3.3.4-RC1
* Purpose: Add data column(s) after `lastpost` column in search result topics
search_results_topic_title_after
===
* Locations:
@@ -2474,6 +2530,13 @@ ucp_header_friends_online_username_full_prepend
* Since: 3.2.10-RC1
* Purpose: Prepend information to online friends username in UCP
ucp_main_bookmarks_topic_title_after
===
* Locations:
+ styles/prosilver/template/ucp_main_bookmarks.html
* Since: 3.3.8-RC1
* Purpose: Add content right after the topic title viewing UCP bookmarks
ucp_main_front_user_activity_after
===
* Locations:
@@ -2502,6 +2565,13 @@ ucp_main_front_user_activity_prepend
* Since: 3.1.11-RC1
* Purpose: Add content before first user activity info viewing UCP front page
ucp_main_subscribed_topic_title_after
===
* Locations:
+ styles/prosilver/template/ucp_main_subscribed.html
* Since: 3.3.8-RC1
* Purpose: Add content right after the topic title viewing UCP subscribed topics
ucp_pm_history_post_buttons_after
===
* Locations:
@@ -2562,6 +2632,20 @@ ucp_pm_history_row_message_author_username_prepend
* Since: 3.2.8-RC1
* Purpose: Prepend information to message author username of member
ucp_pm_viewmessage_author_full_after
===
* Locations:
+ styles/prosilver/template/ucp_pm_viewmessage.html
* Since: 3.3.3-RC1
* Purpose: Add content right after the message author when viewing a private message
ucp_pm_viewmessage_author_full_before
===
* Locations:
+ styles/prosilver/template/ucp_pm_viewmessage.html
* Since: 3.3.3-RC1
* Purpose: Add content right before the message author when viewing a private message
ucp_pm_viewmessage_avatar_after
===
* Locations:
@@ -3289,6 +3373,20 @@ viewtopic_body_postrow_rank_before
* Purpose: Add data before the rank on the user profile when viewing
a post
viewtopic_body_postrow_signature_after
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.3.5-RC1
* Purpose: Add content after the signature
viewtopic_body_postrow_signature_before
===
* Locations:
+ styles/prosilver/template/viewtopic_body.html
* Since: 3.3.5-RC1
* Purpose: Add content before the signature
viewtopic_body_topic_actions_before
===
* Locations:

View File

@@ -220,7 +220,7 @@ else
{
phpbb_download_handle_forum_auth($db, $auth, $attachment['topic_id']);
$sql = 'SELECT forum_id, post_visibility
$sql = 'SELECT forum_id, poster_id, post_visibility
FROM ' . POSTS_TABLE . '
WHERE post_id = ' . (int) $attachment['post_msg_id'];
$result = $db->sql_query($sql);

View File

@@ -759,7 +759,7 @@ class acp_attachments
continue;
}
$filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . htmlspecialchars($img) . '</option>';
$filename_list .= '<option value="' . htmlspecialchars($img, ENT_COMPAT) . '"' . $selected . '>' . htmlspecialchars($img, ENT_COMPAT) . '</option>';
}
}
@@ -1000,29 +1000,45 @@ class acp_attachments
$result = $db->sql_query($sql);
$files_added = $space_taken = 0;
$error_msg = '';
$upload_row = [];
while ($row = $db->sql_fetchrow($result))
{
$post_row = $post_info[$upload_list[$row['attach_id']]];
$upload_row = [
'FILE_INFO' => $user->lang('UPLOADING_FILE_TO', $row['real_filename'], $upload_list[$row['attach_id']]),
];
$template->assign_block_vars('upload', array(
'FILE_INFO' => sprintf($user->lang['UPLOADING_FILE_TO'], $row['real_filename'], $post_row['post_id']),
'S_DENIED' => (!$auth->acl_get('f_attach', $post_row['forum_id'])) ? true : false,
'L_DENIED' => (!$auth->acl_get('f_attach', $post_row['forum_id'])) ? sprintf($user->lang['UPLOAD_DENIED_FORUM'], $forum_names[$row['forum_id']]) : '')
);
if (isset($post_info[$upload_list[$row['attach_id']]]))
{
$post_row = $post_info[$upload_list[$row['attach_id']]];
$upload_row = array_merge($upload_row, [
'S_DENIED' => !$auth->acl_get('f_attach', $post_row['forum_id']),
'L_DENIED' => !$auth->acl_get('f_attach', $post_row['forum_id']) ? $user->lang('UPLOAD_DENIED_FORUM', $forum_names[$row['forum_id']]) : '',
]);
}
else
{
$error_msg = $user->lang('UPLOAD_POST_NOT_EXIST', $row['real_filename'], $upload_list[$row['attach_id']]);
$upload_row = array_merge($upload_row, [
'ERROR_MSG' => $error_msg,
]);
};
if (!$auth->acl_get('f_attach', $post_row['forum_id']))
$template->assign_block_vars('upload', $upload_row);
if ($error_msg || !$auth->acl_get('f_attach', $post_row['forum_id']))
{
continue;
}
// Adjust attachment entry
$sql_ary = array(
$sql_ary = [
'in_message' => 0,
'is_orphan' => 0,
'poster_id' => $post_row['poster_id'],
'post_msg_id' => $post_row['post_id'],
'topic_id' => $post_row['topic_id'],
);
];
$sql = 'UPDATE ' . ATTACHMENTS_TABLE . '
SET ' . $db->sql_build_array('UPDATE', $sql_ary) . '
@@ -1042,7 +1058,7 @@ class acp_attachments
$space_taken += $row['filesize'];
$files_added++;
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ATTACH_FILEUPLOAD', false, array($post_row['post_id'], $row['real_filename']));
$phpbb_log->add('admin', $user->data['user_id'], $user->ip, 'LOG_ATTACH_FILEUPLOAD', false, [$post_row['post_id'], $row['real_filename']]);
}
$db->sql_freeresult($result);
@@ -1054,9 +1070,9 @@ class acp_attachments
}
}
$template->assign_vars(array(
'S_ORPHAN' => true)
);
$template->assign_vars([
'S_ORPHAN' => true,
]);
$attachments_per_page = (int) $config['topics_per_page'];
@@ -1084,15 +1100,15 @@ class acp_attachments
while ($row = $db->sql_fetchrow($result))
{
$template->assign_block_vars('orphan', array(
$template->assign_block_vars('orphan', [
'FILESIZE' => get_formatted_filesize($row['filesize']),
'FILETIME' => $user->format_date($row['filetime']),
'REAL_FILENAME' => utf8_basename($row['real_filename']),
'PHYSICAL_FILENAME' => utf8_basename($row['physical_filename']),
'ATTACH_ID' => $row['attach_id'],
'POST_IDS' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '',
'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'mode=view&amp;id=' . $row['attach_id']))
);
'POST_ID' => (!empty($post_ids[$row['attach_id']])) ? $post_ids[$row['attach_id']] : '',
'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'mode=view&amp;id=' . $row['attach_id']),
]);
}
$db->sql_freeresult($result);
@@ -1105,10 +1121,10 @@ class acp_attachments
$start
);
$template->assign_vars(array(
$template->assign_vars([
'TOTAL_FILES' => $num_files,
'TOTAL_SIZE' => get_formatted_filesize($total_size),
));
]);
break;
@@ -1278,7 +1294,7 @@ class acp_attachments
'S_IN_MESSAGE' => (bool) $row['in_message'],
'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t={$row['topic_id']}&amp;p={$row['post_msg_id']}") . "#p{$row['post_msg_id']}",
'U_VIEW_TOPIC' => append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p={$row['post_msg_id']}") . "#p{$row['post_msg_id']}",
'U_FILE' => append_sid($phpbb_root_path . 'download/file.' . $phpEx, 'mode=view&amp;id=' . $row['attach_id']))
);
}

View File

@@ -62,7 +62,7 @@ class acp_bbcodes
}
$bbcode_match = $row['bbcode_match'];
$bbcode_tpl = htmlspecialchars($row['bbcode_tpl']);
$bbcode_tpl = htmlspecialchars($row['bbcode_tpl'], ENT_COMPAT);
$display_on_posting = $row['display_on_posting'];
$bbcode_helpline = $row['bbcode_helpline'];
break;
@@ -86,7 +86,7 @@ class acp_bbcodes
$display_on_posting = $request->variable('display_on_posting', 0);
$bbcode_match = $request->variable('bbcode_match', '');
$bbcode_tpl = htmlspecialchars_decode($request->variable('bbcode_tpl', '', true));
$bbcode_tpl = html_entity_decode($request->variable('bbcode_tpl', '', true), ENT_COMPAT);
$bbcode_helpline = $request->variable('bbcode_helpline', '', true);
break;
}
@@ -235,7 +235,7 @@ class acp_bbcodes
trigger_error($user->lang['BBCODE_TAG_DEF_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
}
if (strlen($bbcode_helpline) > 255)
if (strlen($bbcode_helpline) > 3000)
{
trigger_error($user->lang['BBCODE_HELPLINE_TOO_LONG'] . adm_back_link($this->u_action), E_USER_WARNING);
}
@@ -334,7 +334,7 @@ class acp_bbcodes
'action' => $action,
'bbcode' => $bbcode_id,
'bbcode_match' => $bbcode_match,
'bbcode_tpl' => htmlspecialchars($bbcode_tpl),
'bbcode_tpl' => htmlspecialchars($bbcode_tpl, ENT_COMPAT),
'bbcode_helpline' => $bbcode_helpline,
'display_on_posting' => $display_on_posting,
)))

View File

@@ -582,7 +582,38 @@ class acp_board
continue;
}
$config->set($config_name, $config_value);
// Array of emoji-enabled configurations
$config_name_ary = [
'sitename',
'site_desc',
'site_home_text',
'board_index_text',
'board_disable_msg',
'board_email_sig',
];
/**
* Event to manage the array of emoji-enabled configurations
*
* @event core.acp_board_config_emoji_enabled
* @var array config_name_ary Array of config names to process
* @since 3.3.3-RC1
*/
$vars = ['config_name_ary'];
extract($phpbb_dispatcher->trigger_event('core.acp_board_config_emoji_enabled', compact($vars)));
if (in_array($config_name, $config_name_ary))
{
/**
* Replace Emojis and other 4bit UTF-8 chars not allowed by MySQL to UCR/NCR.
* Using their Numeric Character Reference's Hexadecimal notation.
*/
$config->set($config_name, utf8_encode_ucr($config_value));
}
else
{
$config->set($config_name, $config_value);
}
if ($config_name == 'allow_quick_reply' && isset($_POST['allow_quick_reply_enable']))
{
@@ -658,7 +689,7 @@ class acp_board
if ($submit && (($cfg_array['auth_method'] != $this->new_config['auth_method']) || $updated_auth_settings))
{
$method = basename($cfg_array['auth_method']);
if (array_key_exists('auth.provider.' . $method, $auth_providers))
if (array_key_exists('auth.provider.' . $method, (array) $auth_providers))
{
$provider = $auth_providers['auth.provider.' . $method];
if ($error = $provider->init())
@@ -689,8 +720,8 @@ class acp_board
$messenger->set_addresses($user->data);
$messenger->anti_abuse_headers($config, $user);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($user->data['username']),
'MESSAGE' => htmlspecialchars_decode($request->variable('send_test_email_text', '', true)),
'USERNAME' => html_entity_decode($user->data['username'], ENT_COMPAT),
'MESSAGE' => html_entity_decode($request->variable('send_test_email_text', '', true), ENT_COMPAT),
));
$messenger->send(NOTIFY_EMAIL);

View File

@@ -69,20 +69,6 @@ class acp_database
trigger_error($user->lang['FORM_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}
$store = true;
$structure = false;
$schema_data = false;
if ($type == 'full' || $type == 'structure')
{
$structure = true;
}
if ($type == 'full' || $type == 'data')
{
$schema_data = true;
}
@set_time_limit(1200);
@set_time_limit(0);
@@ -92,14 +78,14 @@ class acp_database
/** @var phpbb\db\extractor\extractor_interface $extractor Database extractor */
$extractor = $phpbb_container->get('dbal.extractor');
$extractor->init_extractor($format, $filename, $time, false, $store);
$extractor->init_extractor($format, $filename, $time, false, true);
$extractor->write_start($table_prefix);
foreach ($table as $table_name)
{
// Get the table structure
if ($structure)
if ($type == 'full')
{
$extractor->write_table($table_name);
}
@@ -123,15 +109,11 @@ class acp_database
default:
$extractor->flush('TRUNCATE TABLE ' . $table_name . ";\n");
break;
}
}
// Data
if ($schema_data)
{
$extractor->write_data($table_name);
}
// Only supported types are full and data, therefore always write the data
$extractor->write_data($table_name);
}
$extractor->write_end();

View File

@@ -205,7 +205,7 @@ class acp_email
$email_template = 'admin_send_email';
$template_data = array(
'CONTACT_EMAIL' => phpbb_get_board_contact($config, $phpEx),
'MESSAGE' => htmlspecialchars_decode($message),
'MESSAGE' => html_entity_decode($message, ENT_COMPAT),
);
$generate_log_entry = true;
@@ -252,7 +252,7 @@ class acp_email
$messenger->anti_abuse_headers($config, $user);
$messenger->subject(htmlspecialchars_decode($subject));
$messenger->subject(html_entity_decode($subject, ENT_COMPAT));
$messenger->set_mail_priority($priority);
$messenger->assign_vars($template_data);

View File

@@ -53,7 +53,7 @@ class acp_extensions
$this->phpbb_container = $phpbb_container;
$this->php_ini = $this->phpbb_container->get('php_ini');
$this->user->add_lang(array('install', 'acp/extensions', 'migrator'));
$this->user->add_lang(array('install', 'acp/extensions', 'acp/modules', 'migrator'));
$this->page_title = 'ACP_EXTENSIONS';

View File

@@ -90,7 +90,7 @@ class acp_help_phpbb
if (!empty($response))
{
$decoded_response = json_decode(htmlspecialchars_decode($response), true);
$decoded_response = json_decode(html_entity_decode($response, ENT_COMPAT), true);
if ($decoded_response && isset($decoded_response['status']) && $decoded_response['status'] == 'ok')
{
@@ -126,7 +126,7 @@ class acp_help_phpbb
}
$template->assign_block_vars('providers', array(
'NAME' => htmlspecialchars($provider),
'NAME' => htmlspecialchars($provider, ENT_COMPAT),
));
foreach ($data as $key => $value)

View File

@@ -91,29 +91,43 @@ class acp_icons
{
$img_size = getimagesize($phpbb_root_path . $img_path . '/' . $path . $img);
if (!$img_size[0] || !$img_size[1] || strlen($img) > 255)
if ($img_size)
{
continue;
}
if (!$img_size[0] || !$img_size[1] || strlen($img) > 255)
{
continue;
}
// adjust the width and height to be lower than 128px while perserving the aspect ratio (for icons)
if ($mode == 'icons')
// adjust the width and height to be lower than 128px while perserving the aspect ratio (for icons)
if ($mode == 'icons')
{
if ($img_size[0] > 127 && $img_size[0] > $img_size[1])
{
$img_size[1] = (int) ($img_size[1] * (127 / $img_size[0]));
$img_size[0] = 127;
}
else if ($img_size[1] > 127)
{
$img_size[0] = (int) ($img_size[0] * (127 / $img_size[1]));
$img_size[1] = 127;
}
}
}
else
{
if ($img_size[0] > 127 && $img_size[0] > $img_size[1])
{
$img_size[1] = (int) ($img_size[1] * (127 / $img_size[0]));
$img_size[0] = 127;
}
else if ($img_size[1] > 127)
{
$img_size[0] = (int) ($img_size[0] * (127 / $img_size[1]));
$img_size[1] = 127;
}
// getimagesize can't read the dimensions of the SVG files
// https://bugs.php.net/bug.php?id=71517
$xml_get = simplexml_load_file($phpbb_root_path . $img_path . '/' . $path . $img);
$svg_width = intval($xml_get['width']);
$svg_height = intval($xml_get['height']);
}
$_images[$path . $img]['file'] = $path . $img;
$_images[$path . $img]['width'] = $img_size[0];
$_images[$path . $img]['height'] = $img_size[1];
// Give SVG a fallback on failure
$_images[$path . $img]['width'] = $img_size ? $img_size[0] : ($svg_width ?: 32);
$_images[$path . $img]['height'] = $img_size ? $img_size[1] : ($svg_height ?: 32);
}
}
unset($imglist);
@@ -693,7 +707,7 @@ class acp_icons
foreach ($_paks as $pak)
{
$pak_options .= '<option value="' . $pak . '">' . htmlspecialchars($pak) . '</option>';
$pak_options .= '<option value="' . $pak . '">' . htmlspecialchars($pak, ENT_COMPAT) . '</option>';
}
$template->assign_vars(array(

View File

@@ -130,7 +130,7 @@ class acp_inactive
$messenger->anti_abuse_headers($config, $user);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($row['username']))
'USERNAME' => html_entity_decode($row['username'], ENT_COMPAT))
);
$messenger->send(NOTIFY_EMAIL);
@@ -224,7 +224,7 @@ class acp_inactive
$messenger->anti_abuse_headers($config, $user);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($row['username']),
'USERNAME' => html_entity_decode($row['username'], ENT_COMPAT),
'REGISTER_DATE' => $user->format_date($row['user_regdate'], false, true),
'U_ACTIVATE' => generate_board_url() . "/ucp.$phpEx?mode=activate&u=" . $row['user_id'] . '&k=' . $row['user_actkey'])
);

View File

@@ -274,7 +274,7 @@ class acp_language
$lang_pack = array(
'iso' => $lang_iso,
'name' => trim(htmlspecialchars($file[0])),
'name' => trim(htmlspecialchars($file[0], ENT_COMPAT)),
'local_name'=> trim(htmlspecialchars($file[1], ENT_COMPAT, 'UTF-8')),
'author' => trim(htmlspecialchars($file[2], ENT_COMPAT, 'UTF-8'))
);
@@ -420,7 +420,7 @@ class acp_language
foreach ($new_ary as $iso => $lang_ary)
{
$template->assign_block_vars('notinst', array(
'ISO' => htmlspecialchars($lang_ary['iso']),
'ISO' => htmlspecialchars($lang_ary['iso'], ENT_COMPAT),
'LOCAL_NAME' => htmlspecialchars($lang_ary['local_name'], ENT_COMPAT, 'UTF-8'),
'NAME' => htmlspecialchars($lang_ary['name'], ENT_COMPAT, 'UTF-8'),
'U_INSTALL' => $this->u_action . '&amp;action=install&amp;iso=' . urlencode($lang_ary['iso']) . '&amp;hash=' . generate_link_hash('acp_language'))

View File

@@ -108,7 +108,7 @@ class acp_logs
$sql_sort = $sort_by_sql[$sort_key] . ' ' . (($sort_dir == 'd') ? 'DESC' : 'ASC');
$keywords = $request->variable('keywords', '', true);
$keywords_param = !empty($keywords) ? '&amp;keywords=' . urlencode(htmlspecialchars_decode($keywords)) : '';
$keywords_param = !empty($keywords) ? '&amp;keywords=' . urlencode(html_entity_decode($keywords, ENT_COMPAT)) : '';
$l_title = $user->lang['ACP_' . strtoupper($mode) . '_LOGS'];
$l_title_explain = $user->lang['ACP_' . strtoupper($mode) . '_LOGS_EXPLAIN'];

View File

@@ -544,20 +544,13 @@ class acp_main
$files_per_day = $total_files;
}
if ($config['allow_attachments'] || $config['allow_pm_attach'])
{
$sql = 'SELECT COUNT(attach_id) AS total_orphan
FROM ' . ATTACHMENTS_TABLE . '
WHERE is_orphan = 1
AND filetime < ' . (time() - 3*60*60);
$result = $db->sql_query($sql);
$total_orphan = (int) $db->sql_fetchfield('total_orphan');
$db->sql_freeresult($result);
}
else
{
$total_orphan = false;
}
$sql = 'SELECT COUNT(attach_id) AS total_orphan
FROM ' . ATTACHMENTS_TABLE . '
WHERE is_orphan = 1
AND filetime < ' . (time() - 3*60*60);
$result = $db->sql_query($sql);
$total_orphan = (int) $db->sql_fetchfield('total_orphan');
$db->sql_freeresult($result);
$dbsize = get_database_size();
@@ -575,7 +568,6 @@ class acp_main
'DBSIZE' => $dbsize,
'UPLOAD_DIR_SIZE' => $upload_dir_size,
'TOTAL_ORPHAN' => $total_orphan,
'S_TOTAL_ORPHAN' => ($total_orphan === false) ? false : true,
'GZIP_COMPRESSION' => ($config['gzip_compress'] && @extension_loaded('zlib')) ? $user->lang['ON'] : $user->lang['OFF'],
'DATABASE_INFO' => $db->sql_server_info(),
'PHP_VERSION_INFO' => PHP_VERSION,
@@ -679,26 +671,33 @@ class acp_main
}
}
if (!defined('PHPBB_DISABLE_CONFIG_CHECK') && file_exists($phpbb_root_path . 'config.' . $phpEx) && $phpbb_filesystem->is_writable($phpbb_root_path . 'config.' . $phpEx))
if (!defined('PHPBB_DISABLE_CONFIG_CHECK'))
{
// World-Writable? (000x)
$template->assign_var('S_WRITABLE_CONFIG', (bool) (@fileperms($phpbb_root_path . 'config.' . $phpEx) & 0x0002));
}
$this->php_ini = $phpbb_container->get('php_ini');
$func_overload = $this->php_ini->getNumeric('mbstring.func_overload');
$encoding_translation = $this->php_ini->getString('mbstring.encoding_translation');
$http_input = $this->php_ini->getString('mbstring.http_input');
$http_output = $this->php_ini->getString('mbstring.http_output');
$this->php_ini = $phpbb_container->get('php_ini');
$func_overload = $this->php_ini->getNumeric('mbstring.func_overload');
$encoding_translation = $this->php_ini->getString('mbstring.encoding_translation');
$http_input = $this->php_ini->getString('mbstring.http_input');
$http_output = $this->php_ini->getString('mbstring.http_output');
$default_charset = $this->php_ini->getString('default_charset');
if (extension_loaded('mbstring'))
{
$template->assign_vars(array(
/**
* “mbstring.http_input” and “mbstring.http_output” are deprecated as of PHP 5.6.0
* @link https://www.php.net/manual/mbstring.configuration.php#ini.mbstring.http-input
*/
$template->assign_vars([
'S_MBSTRING_LOADED' => true,
'S_MBSTRING_FUNC_OVERLOAD_FAIL' => $func_overload && ($func_overload & (MB_OVERLOAD_MAIL | MB_OVERLOAD_STRING)),
'S_MBSTRING_ENCODING_TRANSLATION_FAIL' => $encoding_translation && ($encoding_translation != 0),
'S_MBSTRING_HTTP_INPUT_FAIL' => $http_input && !in_array($http_input, array('pass', '')),
'S_MBSTRING_HTTP_OUTPUT_FAIL' => $http_output && !in_array($http_output, array('pass', '')),
));
'S_MBSTRING_HTTP_INPUT_FAIL' => !empty($http_input),
'S_MBSTRING_HTTP_OUTPUT_FAIL' => !empty($http_output),
'S_DEFAULT_CHARSET_FAIL' => $default_charset !== null && strtolower($default_charset) !== 'utf-8',
]);
}
// Fill dbms version if not yet filled

View File

@@ -55,8 +55,8 @@ class acp_ranks
$min_posts = ($special_rank) ? 0 : max(0, $request->variable('min_posts', 0));
$rank_image = $request->variable('rank_image', '');
// The rank image has to be a jpg, gif or png
if ($rank_image != '' && !preg_match('#(\.gif|\.png|\.jpg|\.jpeg)$#i', $rank_image))
// The rank image has to be a jp(e)g, gif, png, svg or webp
if ($rank_image != '' && !preg_match('#(\.gif|\.png|\.jpg|\.jpeg|\.svg|\.webp)$#i', $rank_image))
{
$rank_image = '';
}
@@ -70,7 +70,7 @@ class acp_ranks
'rank_title' => $rank_title,
'rank_special' => $special_rank,
'rank_min' => $min_posts,
'rank_image' => htmlspecialchars_decode($rank_image)
'rank_image' => html_entity_decode($rank_image, ENT_COMPAT)
);
/**
@@ -206,7 +206,7 @@ class acp_ranks
continue;
}
$filename_list .= '<option value="' . htmlspecialchars($img) . '"' . $selected . '>' . $img . ((in_array($img, $existing_imgs)) ? ' ' . $user->lang['RANK_IMAGE_IN_USE'] : '') . '</option>';
$filename_list .= '<option value="' . htmlspecialchars($img, ENT_COMPAT) . '"' . $selected . '>' . $img . ((in_array($img, $existing_imgs)) ? ' ' . $user->lang['RANK_IMAGE_IN_USE'] : '') . '</option>';
}
}
@@ -221,7 +221,7 @@ class acp_ranks
'RANK_TITLE' => (isset($ranks['rank_title'])) ? $ranks['rank_title'] : '',
'S_FILENAME_LIST' => $filename_list,
'RANK_IMAGE' => ($edit_img) ? $phpbb_root_path . $config['ranks_path'] . '/' . $edit_img : htmlspecialchars($phpbb_admin_path) . 'images/spacer.gif',
'RANK_IMAGE' => ($edit_img) ? $phpbb_root_path . $config['ranks_path'] . '/' . $edit_img : htmlspecialchars($phpbb_admin_path, ENT_COMPAT) . 'images/spacer.gif',
'S_SPECIAL_RANK' => (isset($ranks['rank_special']) && $ranks['rank_special']) ? true : false,
'MIN_POSTS' => (isset($ranks['rank_min']) && !$ranks['rank_special']) ? $ranks['rank_min'] : 0,
);

View File

@@ -322,9 +322,9 @@ class acp_search
{
$sql = 'SELECT post_id, poster_id, forum_id
FROM ' . POSTS_TABLE . '
WHERE post_id >= ' . (int) ($post_counter + 1) . '
AND post_id <= ' . (int) ($post_counter + $this->batch_size);
$result = $db->sql_query($sql);
WHERE post_id > ' . (int) $post_counter . '
ORDER BY post_id ASC';
$result = $db->sql_query_limit($sql, $this->batch_size);
$ids = $posters = $forum_ids = array();
while ($row = $db->sql_fetchrow($result))
@@ -339,14 +339,13 @@ class acp_search
if (count($ids))
{
$this->search->index_remove($ids, $posters, $forum_ids);
$post_counter = $ids[count($ids) - 1];
}
$post_counter += $this->batch_size;
}
// save the current state
$this->save_state();
if ($post_counter <= $this->max_post_id)
if ($post_counter < $this->max_post_id)
{
$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;
@@ -393,9 +392,9 @@ class acp_search
{
$sql = 'SELECT post_id, post_subject, post_text, poster_id, forum_id
FROM ' . POSTS_TABLE . '
WHERE post_id >= ' . (int) ($post_counter + 1) . '
AND post_id <= ' . (int) ($post_counter + $this->batch_size);
$result = $db->sql_query($sql);
WHERE post_id > ' . (int) $post_counter . '
ORDER BY post_id ASC';
$result = $db->sql_query_limit($sql, $this->batch_size);
$buffer = $db->sql_buffer_nested_transactions();
@@ -416,13 +415,12 @@ class acp_search
$this->search->index('post', $row['post_id'], $row['post_text'], $row['post_subject'], $row['poster_id'], $row['forum_id']);
}
$row_count++;
$post_counter = $row['post_id'];
}
if (!$buffer)
{
$db->sql_freeresult($result);
}
$post_counter += $this->batch_size;
}
// save the current state
$this->save_state();
@@ -434,7 +432,7 @@ class acp_search
$this->search->tidy();
$config['num_posts'] = $num_posts;
if ($post_counter <= $this->max_post_id)
if ($post_counter < $this->max_post_id)
{
$totaltime = microtime(true) - $starttime;
$rows_per_second = $row_count / $totaltime;

View File

@@ -205,7 +205,7 @@ class acp_styles
{
if (in_array($dir, $this->reserved_style_names))
{
$messages[] = $this->user->lang('STYLE_NAME_RESERVED', htmlspecialchars($dir));
$messages[] = $this->user->lang('STYLE_NAME_RESERVED', htmlspecialchars($dir, ENT_COMPAT));
continue;
}
@@ -225,12 +225,12 @@ class acp_styles
$found = true;
$installed_names[] = $style['style_name'];
$installed_dirs[] = $style['style_path'];
$messages[] = sprintf($this->user->lang['STYLE_INSTALLED'], htmlspecialchars($style['style_name']));
$messages[] = sprintf($this->user->lang['STYLE_INSTALLED'], htmlspecialchars($style['style_name'], ENT_COMPAT));
}
}
if (!$found)
{
$messages[] = sprintf($this->user->lang['STYLE_NOT_INSTALLED'], htmlspecialchars($dir));
$messages[] = sprintf($this->user->lang['STYLE_NOT_INSTALLED'], htmlspecialchars($dir, ENT_COMPAT));
}
}
@@ -598,7 +598,7 @@ class acp_styles
{
$this->template->assign_block_vars('parent_styles', array(
'STYLE_ID' => $row['style_id'],
'STYLE_NAME' => htmlspecialchars($row['style_name']),
'STYLE_NAME' => htmlspecialchars($row['style_name'], ENT_COMPAT),
'LEVEL' => $row['level'],
'SPACER' => str_repeat('&nbsp; ', $row['level']),
)
@@ -609,9 +609,9 @@ class acp_styles
$this->template->assign_vars(array(
'S_STYLE_DETAILS' => true,
'STYLE_ID' => $style['style_id'],
'STYLE_NAME' => htmlspecialchars($style['style_name']),
'STYLE_PATH' => htmlspecialchars($style['style_path']),
'STYLE_VERSION' => htmlspecialchars($style_cfg['style_version']),
'STYLE_NAME' => htmlspecialchars($style['style_name'], ENT_COMPAT),
'STYLE_PATH' => htmlspecialchars($style['style_path'], ENT_COMPAT),
'STYLE_VERSION' => htmlspecialchars($style_cfg['style_version'], ENT_COMPAT),
'STYLE_COPYRIGHT' => strip_tags($style['style_copyright']),
'STYLE_PARENT' => $style['style_parent_id'],
'S_STYLE_ACTIVE' => $style['style_active'],
@@ -657,7 +657,7 @@ class acp_styles
{
if (empty($style['_shown']))
{
$style['_note'] = sprintf($this->user->lang['REQUIRES_STYLE'], htmlspecialchars($style['style_parent_tree']));
$style['_note'] = sprintf($this->user->lang['REQUIRES_STYLE'], htmlspecialchars($style['style_parent_tree'], ENT_COMPAT));
$this->list_style($style, 0);
}
}
@@ -826,7 +826,7 @@ class acp_styles
{
// Parent style is not installed yet
$style['_available'] = false;
$style['_note'] = sprintf($this->user->lang['REQUIRES_STYLE'], htmlspecialchars($parent));
$style['_note'] = sprintf($this->user->lang['REQUIRES_STYLE'], htmlspecialchars($parent, ENT_COMPAT));
}
}
@@ -966,10 +966,10 @@ class acp_styles
$row = array(
// Style data
'STYLE_ID' => $style['style_id'],
'STYLE_NAME' => htmlspecialchars($style['style_name']),
'STYLE_NAME' => htmlspecialchars($style['style_name'], ENT_COMPAT),
'STYLE_VERSION' => $style_cfg['style_version'] ?? '-',
'STYLE_PHPBB_VERSION' => $style_cfg['phpbb_version'],
'STYLE_PATH' => htmlspecialchars($style['style_path']),
'STYLE_PATH' => htmlspecialchars($style['style_path'], ENT_COMPAT),
'STYLE_COPYRIGHT' => strip_tags($style['style_copyright']),
'STYLE_ACTIVE' => $style['style_active'],
@@ -979,7 +979,7 @@ class acp_styles
'LEVEL' => $level,
'PADDING' => (4 + 16 * $level),
'SHOW_COPYRIGHT' => ($style['style_id']) ? false : true,
'STYLE_PATH_FULL' => htmlspecialchars($this->styles_path_absolute . '/' . $style['style_path']) . '/',
'STYLE_PATH_FULL' => htmlspecialchars($this->styles_path_absolute . '/' . $style['style_path'], ENT_COMPAT) . '/',
// Comment to show below style
'COMMENT' => (isset($style['_note'])) ? $style['_note'] : '',

View File

@@ -402,8 +402,8 @@ class acp_users
$messenger->anti_abuse_headers($config, $user);
$messenger->assign_vars(array(
'WELCOME_MSG' => htmlspecialchars_decode(sprintf($user->lang['WELCOME_SUBJECT'], $config['sitename'])),
'USERNAME' => htmlspecialchars_decode($user_row['username']),
'WELCOME_MSG' => html_entity_decode(sprintf($user->lang['WELCOME_SUBJECT'], $config['sitename']), ENT_COMPAT),
'USERNAME' => html_entity_decode($user_row['username'], ENT_COMPAT),
'U_ACTIVATE' => "$server_url/ucp.$phpEx?mode=activate&u={$user_row['user_id']}&k=$user_actkey")
);
@@ -466,7 +466,7 @@ class acp_users
$messenger->anti_abuse_headers($config, $user);
$messenger->assign_vars(array(
'USERNAME' => htmlspecialchars_decode($user_row['username']))
'USERNAME' => html_entity_decode($user_row['username'], ENT_COMPAT))
);
$messenger->send(NOTIFY_EMAIL);
@@ -2277,7 +2277,7 @@ class acp_users
}
else
{
$view_topic = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t={$row['topic_id']}&amp;p={$row['post_msg_id']}") . '#p' . $row['post_msg_id'];
$view_topic = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p={$row['post_msg_id']}") . '#p' . $row['post_msg_id'];
}
$template->assign_block_vars('attach', array(

View File

@@ -488,7 +488,7 @@ class auth_admin extends \phpbb\auth\auth
if ($s_role_options)
{
$s_role_options = '<option value="0"' . ((!$current_role_id) ? ' selected="selected"' : '') . ' title="' . htmlspecialchars($user->lang['NO_ROLE_ASSIGNED_EXPLAIN']) . '">' . $user->lang['NO_ROLE_ASSIGNED'] . '</option>' . $s_role_options;
$s_role_options = '<option value="0"' . ((!$current_role_id) ? ' selected="selected"' : '') . ' title="' . htmlspecialchars($user->lang['NO_ROLE_ASSIGNED_EXPLAIN'], ENT_COMPAT) . '">' . $user->lang['NO_ROLE_ASSIGNED'] . '</option>' . $s_role_options;
}
if (!$current_role_id && $mode != 'view')
@@ -585,7 +585,7 @@ class auth_admin extends \phpbb\auth\auth
if ($s_role_options)
{
$s_role_options = '<option value="0"' . ((!$current_role_id) ? ' selected="selected"' : '') . ' title="' . htmlspecialchars($user->lang['NO_ROLE_ASSIGNED_EXPLAIN']) . '">' . $user->lang['NO_ROLE_ASSIGNED'] . '</option>' . $s_role_options;
$s_role_options = '<option value="0"' . ((!$current_role_id) ? ' selected="selected"' : '') . ' title="' . htmlspecialchars($user->lang['NO_ROLE_ASSIGNED_EXPLAIN'], ENT_COMPAT) . '">' . $user->lang['NO_ROLE_ASSIGNED'] . '</option>' . $s_role_options;
}
if (!$current_role_id && $mode != 'view')

View File

@@ -28,7 +28,7 @@ if (!defined('IN_PHPBB'))
*/
// phpBB Version
@define('PHPBB_VERSION', '3.3.2-RC1');
@define('PHPBB_VERSION', '3.3.8-RC1');
// QA-related
// define('PHPBB_QA', 1);
@@ -247,7 +247,10 @@ define('BANLIST_TABLE', $table_prefix . 'banlist');
define('BBCODES_TABLE', $table_prefix . 'bbcodes');
define('BOOKMARKS_TABLE', $table_prefix . 'bookmarks');
define('BOTS_TABLE', $table_prefix . 'bots');
@define('CONFIG_TABLE', $table_prefix . 'config');
if (!defined('CONFIG_TABLE'))
{
define('CONFIG_TABLE', $table_prefix . 'config');
}
define('CONFIG_TEXT_TABLE', $table_prefix . 'config_text');
define('CONFIRM_TABLE', $table_prefix . 'confirm');
define('DISALLOW_TABLE', $table_prefix . 'disallow');

View File

@@ -168,8 +168,14 @@ class diff
$final = $edit->final;
// We can simplify one case where the array is usually supposed to be empty...
if (count($orig) == 1 && trim($orig[0]) === '') $orig = array();
if (count($final) == 1 && trim($final[0]) === '') $final = array();
if (is_array($orig) && count($orig) == 1 && trim($orig[0]) === '')
{
$orig = array();
}
if (is_array($final) && count($final) == 1 && trim($final[0]) === '')
{
$final = array();
}
if (!$orig && !$final)
{

View File

@@ -322,17 +322,17 @@ class diff_renderer_unified extends diff_renderer
function _context($lines)
{
return '<pre class="diff context">' . htmlspecialchars($this->_lines($lines, ' ')) . '<br /></pre>';
return '<pre class="diff context">' . htmlspecialchars($this->_lines($lines, ' '), ENT_COMPAT) . '<br /></pre>';
}
function _added($lines)
{
return '<pre class="diff added">' . htmlspecialchars($this->_lines($lines, '+')) . '<br /></pre>';
return '<pre class="diff added">' . htmlspecialchars($this->_lines($lines, '+'), ENT_COMPAT) . '<br /></pre>';
}
function _deleted($lines)
{
return '<pre class="diff removed">' . htmlspecialchars($this->_lines($lines, '-')) . '<br /></pre>';
return '<pre class="diff removed">' . htmlspecialchars($this->_lines($lines, '-'), ENT_COMPAT) . '<br /></pre>';
}
function _changed($orig, $final)
@@ -519,7 +519,7 @@ class diff_renderer_inline extends diff_renderer
function _encode(&$string)
{
$string = htmlspecialchars($string);
$string = htmlspecialchars($string, ENT_COMPAT);
}
}
@@ -539,7 +539,7 @@ class diff_renderer_raw extends diff_renderer
*/
function get_diff_content($diff)
{
return '<textarea style="height: 290px;" rows="15" cols="76" class="full">' . htmlspecialchars($this->render($diff)) . '</textarea>';
return '<textarea style="height: 290px;" rows="15" cols="76" class="full">' . htmlspecialchars($this->render($diff), ENT_COMPAT) . '</textarea>';
}
function _block_header($xbeg, $xlen, $ybeg, $ylen)
@@ -649,7 +649,7 @@ class diff_renderer_side_by_side extends diff_renderer
foreach ($change['lines'] as $_line)
{
$line .= htmlspecialchars($_line) . '<br />';
$line .= htmlspecialchars($_line, ENT_COMPAT) . '<br />';
}
$output .= '<tr><td class="added_empty">&nbsp;</td><td class="added"><pre>' . ((strlen($line)) ? $line : '&nbsp;') . '<br /></pre></td></tr>';
@@ -660,14 +660,14 @@ class diff_renderer_side_by_side extends diff_renderer
foreach ($change['lines'] as $_line)
{
$line .= htmlspecialchars($_line) . '<br />';
$line .= htmlspecialchars($_line, ENT_COMPAT) . '<br />';
}
$output .= '<tr><td class="removed"><pre>' . ((strlen($line)) ? $line : '&nbsp;') . '<br /></pre></td><td class="removed_empty">&nbsp;</td></tr>';
break;
case 'empty':
$current_context .= htmlspecialchars($change['line']) . '<br />';
$current_context .= htmlspecialchars($change['line'], ENT_COMPAT) . '<br />';
break;
case 'change':
@@ -678,9 +678,9 @@ class diff_renderer_side_by_side extends diff_renderer
for ($row = 0, $row_max = max($oldsize, $newsize); $row < $row_max; ++$row)
{
$left .= isset($change['old'][$row]) ? htmlspecialchars($change['old'][$row]) : '';
$left .= isset($change['old'][$row]) ? htmlspecialchars($change['old'][$row], ENT_COMPAT) : '';
$left .= '<br />';
$right .= isset($change['new'][$row]) ? htmlspecialchars($change['new'][$row]) : '';
$right .= isset($change['new'][$row]) ? htmlspecialchars($change['new'][$row], ENT_COMPAT) : '';
$right .= '<br />';
}

View File

@@ -263,49 +263,68 @@ function phpbb_version_compare($version1, $version2, $operator = null)
// functions used for building option fields
/**
* Pick a language, any language ...
*/
function language_select($default = '')
* Pick a language, any language ...
*
* @param string $default Language ISO code to be selected by default in the dropdown list
* @param array $langdata Language data in format of array(array('lang_iso' => string, lang_local_name => string), ...)
*
* @return string HTML options for language selection dropdown list.
*/
function language_select($default = '', array $langdata = [])
{
global $db;
$sql = 'SELECT lang_iso, lang_local_name
FROM ' . LANG_TABLE . '
ORDER BY lang_english_name';
$result = $db->sql_query($sql);
if (empty($langdata))
{
$sql = 'SELECT lang_iso, lang_local_name
FROM ' . LANG_TABLE . '
ORDER BY lang_english_name';
$result = $db->sql_query($sql);
$langdata = (array) $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
}
$lang_options = '';
while ($row = $db->sql_fetchrow($result))
foreach ($langdata as $row)
{
$selected = ($row['lang_iso'] == $default) ? ' selected="selected"' : '';
$lang_options .= '<option value="' . $row['lang_iso'] . '"' . $selected . '>' . $row['lang_local_name'] . '</option>';
}
$db->sql_freeresult($result);
return $lang_options;
}
/**
* Pick a template/theme combo,
*/
function style_select($default = '', $all = false)
* Pick a template/theme combo
*
* @param string $default Style ID to be selected by default in the dropdown list
* @param bool $all Flag indicating if all styles data including inactive ones should be fetched
* @param array $styledata Style data in format of array(array('style_id' => int, style_name => string), ...)
*
* @return string HTML options for style selection dropdown list.
*/
function style_select($default = '', $all = false, array $styledata = [])
{
global $db;
$sql_where = (!$all) ? 'WHERE style_active = 1 ' : '';
$sql = 'SELECT style_id, style_name
FROM ' . STYLES_TABLE . "
$sql_where
ORDER BY style_name";
$result = $db->sql_query($sql);
if (empty($styledata))
{
$sql_where = (!$all) ? 'WHERE style_active = 1 ' : '';
$sql = 'SELECT style_id, style_name
FROM ' . STYLES_TABLE . "
$sql_where
ORDER BY style_name";
$result = $db->sql_query($sql);
$styledata = (array) $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
}
$style_options = '';
while ($row = $db->sql_fetchrow($result))
foreach ($styledata as $row)
{
$selected = ($row['style_id'] == $default) ? ' selected="selected"' : '';
$style_options .= '<option value="' . $row['style_id'] . '"' . $selected . '>' . $row['style_name'] . '</option>';
}
$db->sql_freeresult($result);
return $style_options;
}
@@ -1075,7 +1094,7 @@ function get_complete_topic_tracking($forum_id, $topic_ids, $global_announce_lis
* @param string $sql_limit Limits the size of unread topics list, 0 for unlimited query
* @param string $sql_limit_offset Sets the offset of the first row to search, 0 to search from the start
*
* @return array[int][int] Topic ids as keys, mark_time of topic as value
* @return int[] Topic ids as keys, mark_time of topic as value
*/
function get_unread_topics($user_id = false, $sql_extra = '', $sql_sort = '', $sql_limit = 1001, $sql_limit_offset = 0)
{
@@ -1464,10 +1483,9 @@ function tracking_unserialize($string, $max_depth = 3)
* @return string The corrected url.
*
* Examples:
* <code>
* append_sid("{$phpbb_root_path}viewtopic.$phpEx?t=1&amp;f=2");
* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1&amp;f=2');
* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1&f=2', false);
* <code> append_sid("{$phpbb_root_path}viewtopic.$phpEx?t=1");
* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1');
* append_sid("{$phpbb_root_path}viewtopic.$phpEx", 't=1', false);
* append_sid("{$phpbb_root_path}viewtopic.$phpEx", array('t' => 1, 'f' => 2));
* </code>
*
@@ -2484,7 +2502,7 @@ function login_box($redirect = '', $l_explain = '', $l_success = '', $admin = fa
'LOGIN_ERROR' => $err,
'LOGIN_EXPLAIN' => $l_explain,
'U_SEND_PASSWORD' => ($config['email_enable']) ? $controller_helper->route('phpbb_ucp_forgot_password_controller') : '',
'U_SEND_PASSWORD' => ($config['email_enable'] && $config['allow_password_reset']) ? $controller_helper->route('phpbb_ucp_forgot_password_controller') : '',
'U_RESEND_ACTIVATION' => ($config['require_activation'] == USER_ACTIVATION_SELF && $config['email_enable']) ? append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=resend_act') : '',
'U_TERMS_USE' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=terms'),
'U_PRIVACY' => append_sid("{$phpbb_root_path}ucp.$phpEx", 'mode=privacy'),
@@ -2703,7 +2721,7 @@ function parse_cfg_file($filename, $lines = false)
}
// Determine first occurrence, since in values the equal sign is allowed
$key = htmlspecialchars(strtolower(trim(substr($line, 0, $delim_pos))));
$key = htmlspecialchars(strtolower(trim(substr($line, 0, $delim_pos))), ENT_COMPAT);
$value = trim(substr($line, $delim_pos + 1));
if (in_array($value, array('off', 'false', '0')))
@@ -2720,11 +2738,11 @@ function parse_cfg_file($filename, $lines = false)
}
else if (($value[0] == "'" && $value[strlen($value) - 1] == "'") || ($value[0] == '"' && $value[strlen($value) - 1] == '"'))
{
$value = htmlspecialchars(substr($value, 1, strlen($value)-2));
$value = htmlspecialchars(substr($value, 1, strlen($value)-2), ENT_COMPAT);
}
else
{
$value = htmlspecialchars($value);
$value = htmlspecialchars($value, ENT_COMPAT);
}
$parsed_items[$key] = $value;
@@ -2757,7 +2775,7 @@ function get_backtrace()
foreach ($backtrace as $trace)
{
// Strip the current directory from path
$trace['file'] = (empty($trace['file'])) ? '(not given by php)' : htmlspecialchars(phpbb_filter_root_path($trace['file']));
$trace['file'] = (empty($trace['file'])) ? '(not given by php)' : htmlspecialchars(phpbb_filter_root_path($trace['file']), ENT_COMPAT);
$trace['line'] = (empty($trace['line'])) ? '(not given by php)' : $trace['line'];
// Only show function arguments for include etc.
@@ -2765,7 +2783,7 @@ function get_backtrace()
$argument = '';
if (!empty($trace['args'][0]) && in_array($trace['function'], array('include', 'require', 'include_once', 'require_once')))
{
$argument = htmlspecialchars(phpbb_filter_root_path($trace['args'][0]));
$argument = htmlspecialchars(phpbb_filter_root_path($trace['args'][0]), ENT_COMPAT);
}
$trace['class'] = (!isset($trace['class'])) ? '' : $trace['class'];
@@ -2775,7 +2793,7 @@ function get_backtrace()
$output .= '<b>FILE:</b> ' . $trace['file'] . '<br />';
$output .= '<b>LINE:</b> ' . ((!empty($trace['line'])) ? $trace['line'] : '') . '<br />';
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function']);
$output .= '<b>CALL:</b> ' . htmlspecialchars($trace['class'] . $trace['type'] . $trace['function'], ENT_COMPAT);
$output .= '(' . (($argument !== '') ? "'$argument'" : '') . ')<br />';
}
$output .= '</div>';
@@ -2996,7 +3014,7 @@ function msg_handler($errno, $msg_text, $errfile, $errline)
// Check the error reporting level and return if the error level does not match
// If DEBUG is defined the default level is E_ALL
if (($errno & ($phpbb_container->getParameter('debug.show_errors') ? E_ALL : error_reporting())) == 0)
if (($errno & ($phpbb_container != null && $phpbb_container->getParameter('debug.show_errors') ? E_ALL : error_reporting())) == 0)
{
return;
}
@@ -3240,12 +3258,12 @@ function phpbb_filter_root_path($errfile)
{
if ($phpbb_filesystem)
{
$root_path = $phpbb_filesystem->realpath(dirname(__FILE__) . '/../');
$root_path = $phpbb_filesystem->realpath(__DIR__ . '/../');
}
else
{
$filesystem = new \phpbb\filesystem\filesystem();
$root_path = $filesystem->realpath(dirname(__FILE__) . '/../');
$root_path = $filesystem->realpath(__DIR__ . '/../');
}
}
@@ -3856,8 +3874,9 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
}
}
$forum_id = $request->variable('f', 0);
$topic_id = $request->variable('t', 0);
// Negative forum and topic IDs are not allowed
$forum_id = max(0, $request->variable('f', 0));
$topic_id = max(0, $request->variable('t', 0));
$s_feed_news = false;
@@ -4049,7 +4068,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
'S_ENABLE_FEEDS_TOPICS_ACTIVE' => ($config['feed_topics_active']) ? true : false,
'S_ENABLE_FEEDS_NEWS' => ($s_feed_news) ? true : false,
'S_LOAD_UNREADS' => ($config['load_unreads_search'] && ($config['load_anon_lastread'] || $user->data['is_registered'])) ? true : false,
'S_LOAD_UNREADS' => (bool) $config['load_unreads_search'] && ($config['load_anon_lastread'] || !empty($user->data['is_registered'])),
'S_SEARCH_HIDDEN_FIELDS' => build_hidden_fields($s_search_hidden_fields),
@@ -4070,7 +4089,7 @@ function page_header($page_title = '', $display_online_list = false, $item_id =
'T_FONT_AWESOME_LINK' => !empty($config['allow_cdn']) && !empty($config['load_font_awesome_url']) ? $config['load_font_awesome_url'] : "{$web_path}assets/css/font-awesome.min.css?assets_version=" . $config['assets_version'],
'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery-3.5.1.min.js?assets_version=" . $config['assets_version'],
'T_JQUERY_LINK' => !empty($config['allow_cdn']) && !empty($config['load_jquery_url']) ? $config['load_jquery_url'] : "{$web_path}assets/javascript/jquery-3.6.0.min.js?assets_version=" . $config['assets_version'],
'S_ALLOW_CDN' => !empty($config['allow_cdn']),
'S_COOKIE_NOTICE' => !empty($config['cookie_notice']),
@@ -4405,6 +4424,6 @@ function phpbb_get_board_contact_link(\phpbb\config\config $config, $phpbb_root_
}
else
{
return 'mailto:' . htmlspecialchars($config['board_contact']);
return 'mailto:' . htmlspecialchars($config['board_contact'], ENT_COMPAT);
}
}

Some files were not shown because too many files have changed in this diff Show More