Skip to content

Commit f48e5ae

Browse files
committed
Upgrade to Backdrop 1.18.3
2 parents 144a550 + a309fe6 commit f48e5ae

File tree

3 files changed

+27
-2
lines changed

3 files changed

+27
-2
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,24 @@ Developer Documentation
8282
-----------------------
8383
Please see the the [Backdrop API Documentation](https://api.backdropcms.org).
8484

85+
Code of Conduct
86+
---------------
87+
88+
A primary goal of the Backdrop CMS community is to be inclusive to the largest
89+
number of contributors, with the most varied and diverse backgrounds possible.
90+
As such, we are committed to providing a friendly, safe and welcoming
91+
environment for all, regardless of ability, ethnicity, gender, sexual
92+
orientation, sexual preferences, socioeconomic status, geographic location, or
93+
religion (or lack thereof).
94+
95+
Our
96+
[code of conduct](https://github.com/backdrop-ops/conduct/blob/main/code_of_conduct.md)
97+
outlines our expectations for all those who participate in our community, as
98+
well as the consequences for unacceptable behavior.
99+
100+
We invite all those who participate in the Backdrop CMS community to help us
101+
create safe and positive experiences for everyone.
102+
85103
License
86104
-------
87105
Backdrop is [GPL v2](http://www.gnu.org/licenses/gpl-2.0.html) (or higher)

core/includes/bootstrap.inc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
/**
88
* The current system version.
99
*/
10-
define('BACKDROP_VERSION', '1.18.2');
10+
define('BACKDROP_VERSION', '1.18.3');
1111

1212
/**
1313
* Core API compatibility.
@@ -4009,6 +4009,7 @@ function backdrop_autoload($class) {
40094009
// module_invoke_all() because it uses array_merge_recursive(), which is an
40104010
// expensive O(n^2) operation. Instead we use module_implements() and merge
40114011
// the array manually, which is O(n).
4012+
include_once BACKDROP_ROOT . '/core/includes/module.inc';
40124013
foreach (module_implements('autoload_info') as $module) {
40134014
$module_classes = module_invoke($module, 'autoload_info');
40144015
$module_path = backdrop_get_path('module', $module);

core/includes/common.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,13 @@ function _filter_xss_attributes($attr) {
19461946
// Attribute name, href for instance.
19471947
if (preg_match('/^([-a-zA-Z]+)/', $attr, $match)) {
19481948
$attrname = strtolower($match[1]);
1949-
$skip = ($attrname == 'style' || substr($attrname, 0, 2) == 'on');
1949+
$skip = (
1950+
$attrname == 'style' ||
1951+
substr($attrname, 0, 2) == 'on' ||
1952+
substr($attrname, 0, 1) == '-' ||
1953+
// Ignore long attributes to avoid unnecessary processing overhead.
1954+
strlen($attrname) > 96
1955+
);
19501956
$working = $mode = 1;
19511957
$attr = preg_replace('/^[-a-zA-Z]+/', '', $attr);
19521958
}

0 commit comments

Comments
 (0)