Compare commits

...

5 commits

Author SHA1 Message Date
JoshyPHP
6f5873e1bd
Merge f68079cfc7 into 1b2ac50cfd 2025-05-02 07:16:20 +00:00
Marc Alexander
1b2ac50cfd
Merge pull request #6810 from rxu/ticket/17504
[ticket/17504] Fix tests failure caused by ondrej/php PPA repo label changed
2025-04-28 21:17:23 +02:00
rxu
779bec5fcf
[ticket/17504] Run apt-get update on runner lever rather than in bash scripts
PHPBB-17504
2025-04-28 23:28:05 +07:00
rxu
f512af1823
[ticket/17504] Fix tests
Fix the following apt-get update issue with ondrej/php PPA repo:
Repository 'https://ppa.launchpadcontent.net/ondrej/php/ubuntu noble InRelease'
changed its 'Label' value from '***** The main PPA for supported PHP versions
with many PECL extensions *****' to 'PPA for PHP'

Alternative fix might be: sudo apt update && sudo apt full-upgrade -y

PHPBB-17504
2025-04-28 21:17:57 +07:00
JoshyPHP
f68079cfc7 [ticket/16880] Enable all BBCodes during reparsing
PHPBB3-16880
2021-09-19 19:03:39 +02:00
6 changed files with 26 additions and 18 deletions

View file

@ -10,5 +10,4 @@
# #
set -e set -e
sudo apt-get update
sudo apt-get install -y parallel libimage-exiftool-perl sudo apt-get install -y parallel libimage-exiftool-perl

View file

@ -11,7 +11,6 @@
set -e set -e
set -x set -x
sudo apt-get update
sudo apt-get install -q -y sphinxsearch sudo apt-get install -q -y sphinxsearch
DIR=$(dirname "$0") DIR=$(dirname "$0")

View file

@ -10,5 +10,4 @@
# #
set -e set -e
sudo apt-get update
sudo apt-get install -y expect-dev sudo apt-get install -y expect-dev

View file

@ -11,7 +11,6 @@
set -e set -e
set -x set -x
sudo apt-get update
sudo apt-get install -y nginx coreutils sudo apt-get install -y nginx coreutils
sudo service nginx stop sudo service nginx stop

View file

@ -28,6 +28,10 @@ jobs:
name: PHP ${{ matrix.php }} - ${{ matrix.db }} name: PHP ${{ matrix.php }} - ${{ matrix.db }}
steps: steps:
- name: Update Ubuntu package lists
run: |
sudo apt-get update -y --allow-releaseinfo-change
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
@ -158,6 +162,10 @@ jobs:
- 6379:6379 - 6379:6379
steps: steps:
- name: Update Ubuntu package lists
run: |
sudo apt-get update -y --allow-releaseinfo-change
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -299,6 +307,10 @@ jobs:
- 6379:6379 - 6379:6379
steps: steps:
- name: Update Ubuntu package lists
run: |
sudo apt-get update -y --allow-releaseinfo-change
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -397,6 +409,10 @@ jobs:
steps: steps:
- name: Update Ubuntu package lists
run: |
sudo apt-get update -y --allow-releaseinfo-change
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4

View file

@ -76,20 +76,16 @@ abstract class base implements reparser_interface
} }
// Those BBCodes are disabled based on context and user permissions and that value is never // Those BBCodes are disabled based on context and user permissions and that value is never
// stored in the database. Here we test whether they were used in the original text. // stored in the database. However, when a user attempts to post a message that contains an
$bbcodes = array('flash', 'img', 'quote', 'url'); // unauthorized BBCode, the message is rejected. Therefore, messages found in the database
foreach ($bbcodes as $bbcode) // should not contain any unauthorized BBCodes, which means it should be safe to enable all
{ // of them in bulk if they are not explicitly disabled in the record.
$field_name = 'enable_' . $bbcode . '_bbcode'; $record += [
$record[$field_name] = $this->guess_bbcode($record, $bbcode); 'enable_flash_bbcode' => true,
} 'enable_img_bbcode' => true,
'enable_quote_bbcode' => true,
// Magic URLs are tied to the URL BBCode, that's why if magic URLs are enabled we make sure 'enable_url_bbcode' => true,
// that the URL BBCode is also enabled ];
if ($record['enable_magic_url'])
{
$record['enable_url_bbcode'] = true;
}
return $record; return $record;
} }