Merge branch 'prep-release-3.3.15' into 3.3.x

This commit is contained in:
Marc Alexander 2025-04-02 16:50:53 +02:00
commit b8ea36a70f
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
7 changed files with 86 additions and 24 deletions

View file

@ -3,8 +3,8 @@
<project name="phpBB" description="The phpBB forum software" default="all" basedir="../"> <project name="phpBB" description="The phpBB forum software" default="all" basedir="../">
<!-- a few settings for the build --> <!-- a few settings for the build -->
<property name="newversion" value="3.3.16-dev" /> <property name="newversion" value="3.3.16-dev" />
<property name="prevversion" value="3.3.14" /> <property name="prevversion" value="3.3.15" />
<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, 3.3.7, 3.3.8, 3.3.9, 3.3.10, 3.3.11, 3.3.12, 3.3.13" /> <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, 3.3.7, 3.3.8, 3.3.9, 3.3.10, 3.3.11, 3.3.12, 3.3.13, 3.3.14" />
<!-- no configuration should be needed beyond this point --> <!-- no configuration should be needed beyond this point -->
<property name="oldversions" value="${olderversions}, ${prevversion}" /> <property name="oldversions" value="${olderversions}, ${prevversion}" />

View file

@ -121,8 +121,8 @@ function parse_document(container)
} }
if ((text.length && text !== '-') || cell.children().length) { if ((text.length && text !== '-') || cell.children().length) {
if (headers[column] != '') { if (headers[column].length) {
cell.prepend('<dfn style="display: none;">' + headers[column] + '</dfn>'); cell.prepend($("<dfn>").css('display', 'none').text(headers[column]));
} }
} }
else { else {
@ -143,7 +143,7 @@ function parse_document(container)
*/ */
container.find('table.responsive > tbody').each(function() { container.find('table.responsive > tbody').each(function() {
var items = $(this).children('tr'); var items = $(this).children('tr');
if (items.length == 0) if (!items.length)
{ {
$(this).parent('table:first').addClass('responsive-hide'); $(this).parent('table:first').addClass('responsive-hide');
} }
@ -184,7 +184,7 @@ function parse_document(container)
var width = $body.width(), var width = $body.width(),
height = $this.height(); height = $this.height();
if (arguments.length == 0 && (!responsive || width <= lastWidth) && height <= maxHeight) { if (!arguments.length && (!responsive || width <= lastWidth) && height <= maxHeight) {
return; return;
} }

View file

@ -235,14 +235,20 @@ function submitPermissions() {
if ($alertBoxLink) { if ($alertBoxLink) {
// Remove forum_id[] from URL // Remove forum_id[] from URL
$alertBoxLink.attr('href', $alertBoxLink.attr('href').replace(/(&forum_id\[\]=[0-9]+)/g, '')); $alertBoxLink.attr('href', $alertBoxLink.attr('href').replace(/(&forum_id\[\]=[0-9]+)/g, ''));
var previousPageForm = '<form action="' + $alertBoxLink.attr('href') + '" method="post">'; const $previousPageForm = $('<form>').attr({
$.each(forumIds, function (key, value) { action: $alertBoxLink.attr('href'),
previousPageForm += '<input type="text" name="forum_id[]" value="' + value + '" />'; method: 'post'
});
$.each(forumIds, function (key, value) {
$previousPageForm.append($('<input>').attr({
type: 'text',
name: 'forum_id[]',
value: value
}));
}); });
previousPageForm += '</form>';
$alertBoxLink.on('click', function (e) { $alertBoxLink.on('click', function (e) {
var $previousPageForm = $(previousPageForm);
$('body').append($previousPageForm); $('body').append($previousPageForm);
e.preventDefault(); e.preventDefault();
$previousPageForm.submit(); $previousPageForm.submit();
@ -257,12 +263,19 @@ function submitPermissions() {
setTimeout(function () { setTimeout(function () {
// Create forum to submit using POST. This will prevent // Create forum to submit using POST. This will prevent
// exceeding the maximum length of URLs // exceeding the maximum length of URLs
var form = '<form action="' + res.REFRESH_DATA.url.replace(/(&forum_id\[\]=[0-9]+)/g, '') + '" method="post">'; const $form = $('<form>').attr({
$.each(forumIds, function (key, value) { action: res.REFRESH_DATA.url.replace(/(&forum_id\[\]=[0-9]+)/g, ''),
form += '<input type="text" name="forum_id[]" value="' + value + '" />'; method: 'post'
}); });
form += '</form>';
$form = $(form); $.each(forumIds, function (key, value) {
$form.append($('<input>').attr({
type: 'text',
name: 'forum_id[]',
value: value
}));
});
$('body').append($form); $('body').append($form);
// Hide the alert even if we refresh the page, in case the user // Hide the alert even if we refresh the page, in case the user

View file

@ -50,6 +50,7 @@
<ol> <ol>
<li><a href="#changelog">Changelog</a> <li><a href="#changelog">Changelog</a>
<ul> <ul>
<li><a href="#v3315rc1">Changes since 3.3.15-RC1</a></li>
<li><a href="#v3314">Changes since 3.3.14</a></li> <li><a href="#v3314">Changes since 3.3.14</a></li>
<li><a href="#v3314rc1">Changes since 3.3.14-RC1</a></li> <li><a href="#v3314rc1">Changes since 3.3.14-RC1</a></li>
<li><a href="#v3313">Changes since 3.3.13</a></li> <li><a href="#v3313">Changes since 3.3.13</a></li>
@ -174,6 +175,16 @@
<div class="inner"> <div class="inner">
<div class="content"> <div class="content">
<a name="v3315rc1"></a><h3>Changes since 3.3.15-RC1</h3>
<h4>Bug</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/PHPBB-17480">PHPBB-17480</a>] - PHP fatal error in version check failure</li>
</ul>
<h4>Security Issue</h4>
<ul>
<li>[<a href="https://tracker.phpbb.com/browse/SECURITY-283">SECURITY-283</a>] - Use jQuery to generate HTML from page data</li>
</ul>
<a name="v3314"></a><h3>Changes since 3.3.14</h3> <a name="v3314"></a><h3>Changes since 3.3.14</h3>
<h4>Bug</h4> <h4>Bug</h4>
<ul> <ul>

View file

@ -23,7 +23,7 @@ if (php_sapi_name() !== 'cli')
define('IN_PHPBB', true); define('IN_PHPBB', true);
define('IN_INSTALL', true); define('IN_INSTALL', true);
define('PHPBB_ENVIRONMENT', 'production'); define('PHPBB_ENVIRONMENT', 'production');
define('PHPBB_VERSION', '3.3.15-RC1'); define('PHPBB_VERSION', '3.3.15');
$phpbb_root_path = __DIR__ . '/../'; $phpbb_root_path = __DIR__ . '/../';
$phpEx = substr(strrchr(__FILE__, '.'), 1); $phpEx = substr(strrchr(__FILE__, '.'), 1);

View file

@ -0,0 +1,36 @@
<?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.
*
*/
namespace phpbb\db\migration\data\v33x;
class v3315 extends \phpbb\db\migration\migration
{
public function effectively_installed()
{
return version_compare($this->config['version'], '3.3.15', '>=');
}
public static function depends_on()
{
return [
'\phpbb\db\migration\data\v33x\v3315rc1',
];
}
public function update_data()
{
return [
['config.update', ['version', '3.3.15']],
];
}
}

View file

@ -650,7 +650,7 @@ function parseDocument($container) {
html = $children.html(); html = $children.html();
} }
$block.append((first ? '' : '<br />') + html); $block.append((first ? '' : '<br>') + html);
first = false; first = false;
}); });
@ -670,7 +670,7 @@ function parseDocument($container) {
// Find all headers, get contents // Find all headers, get contents
$list.prev('.topiclist').find('li.header dd').not('.mark').each(function() { $list.prev('.topiclist').find('li.header dd').not('.mark').each(function() {
headers.push($(this).text()); headers.push($("<div>").text($(this).text()).html());
headersLength++; headersLength++;
}); });
@ -707,7 +707,7 @@ function parseDocument($container) {
html = headers[i] + ': <strong>' + html + '</strong>'; html = headers[i] + ': <strong>' + html + '</strong>';
} }
$block.append((first ? '' : '<br />') + html); $block.append((first ? '' : '<br>') + html);
first = false; first = false;
}); });
@ -773,7 +773,9 @@ function parseDocument($container) {
} }
if ((text.length && text !== '-') || cell.children().length) { if ((text.length && text !== '-') || cell.children().length) {
cell.prepend('<dfn style="display: none;">' + headers[column] + '</dfn>'); if (headers[column].length) {
cell.prepend($("<dfn>").css('display', 'none').text(headers[column]));
}
} else { } else {
cell.addClass('empty'); cell.addClass('empty');
} }