mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
Compare commits
5 commits
c4996eb995
...
6f5873e1bd
Author | SHA1 | Date | |
---|---|---|---|
|
6f5873e1bd | ||
|
1b2ac50cfd | ||
|
779bec5fcf | ||
|
f512af1823 | ||
|
f68079cfc7 |
6 changed files with 26 additions and 18 deletions
1
.github/setup-exiftool.sh
vendored
1
.github/setup-exiftool.sh
vendored
|
@ -10,5 +10,4 @@
|
|||
#
|
||||
set -e
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y parallel libimage-exiftool-perl
|
||||
|
|
1
.github/setup-sphinx.sh
vendored
1
.github/setup-sphinx.sh
vendored
|
@ -11,7 +11,6 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -q -y sphinxsearch
|
||||
|
||||
DIR=$(dirname "$0")
|
||||
|
|
1
.github/setup-unbuffer.sh
vendored
1
.github/setup-unbuffer.sh
vendored
|
@ -10,5 +10,4 @@
|
|||
#
|
||||
set -e
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y expect-dev
|
||||
|
|
1
.github/setup-webserver.sh
vendored
1
.github/setup-webserver.sh
vendored
|
@ -11,7 +11,6 @@
|
|||
set -e
|
||||
set -x
|
||||
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y nginx coreutils
|
||||
|
||||
sudo service nginx stop
|
||||
|
|
16
.github/workflows/tests.yml
vendored
16
.github/workflows/tests.yml
vendored
|
@ -28,6 +28,10 @@ jobs:
|
|||
name: PHP ${{ matrix.php }} - ${{ matrix.db }}
|
||||
|
||||
steps:
|
||||
- name: Update Ubuntu package lists
|
||||
run: |
|
||||
sudo apt-get update -y --allow-releaseinfo-change
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
|
@ -158,6 +162,10 @@ jobs:
|
|||
- 6379:6379
|
||||
|
||||
steps:
|
||||
- name: Update Ubuntu package lists
|
||||
run: |
|
||||
sudo apt-get update -y --allow-releaseinfo-change
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
@ -299,6 +307,10 @@ jobs:
|
|||
- 6379:6379
|
||||
|
||||
steps:
|
||||
- name: Update Ubuntu package lists
|
||||
run: |
|
||||
sudo apt-get update -y --allow-releaseinfo-change
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
@ -397,6 +409,10 @@ jobs:
|
|||
|
||||
|
||||
steps:
|
||||
- name: Update Ubuntu package lists
|
||||
run: |
|
||||
sudo apt-get update -y --allow-releaseinfo-change
|
||||
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
|
|
|
@ -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
|
||||
// stored in the database. Here we test whether they were used in the original text.
|
||||
$bbcodes = array('flash', 'img', 'quote', 'url');
|
||||
foreach ($bbcodes as $bbcode)
|
||||
{
|
||||
$field_name = 'enable_' . $bbcode . '_bbcode';
|
||||
$record[$field_name] = $this->guess_bbcode($record, $bbcode);
|
||||
}
|
||||
|
||||
// Magic URLs are tied to the URL BBCode, that's why if magic URLs are enabled we make sure
|
||||
// that the URL BBCode is also enabled
|
||||
if ($record['enable_magic_url'])
|
||||
{
|
||||
$record['enable_url_bbcode'] = true;
|
||||
}
|
||||
// stored in the database. However, when a user attempts to post a message that contains an
|
||||
// unauthorized BBCode, the message is rejected. Therefore, messages found in the database
|
||||
// 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.
|
||||
$record += [
|
||||
'enable_flash_bbcode' => true,
|
||||
'enable_img_bbcode' => true,
|
||||
'enable_quote_bbcode' => true,
|
||||
'enable_url_bbcode' => true,
|
||||
];
|
||||
|
||||
return $record;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue