Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
d148edb
Exclude more resources from the distribution package (#257)
morozov Jun 6, 2020
3bdc031
Add %HTML.Forms config directive (#260)
xemlock Jun 29, 2020
ce7efc1
Delete language tests that are interfering with PSR-0 compatibility
ezyang Jun 29, 2020
d7be9d2
Update changelog
ezyang Jun 29, 2020
08e27c9
Release 4.13.0
ezyang Jun 29, 2020
15258fd
Fix typo in the 4.13.0 NEWS: PHP 6.4 never existed (#262)
LeSuisse Jul 6, 2020
4285590
issue-256: Fix PHP 7.3 compatibility issues (#266)
kish0808 Sep 15, 2020
6aa4166
Issue-256: Fix PHP 7.3 compatibility issues update zend.ze1_compatibi…
kish0808 Sep 16, 2020
2512f59
Check PHP version before checking magic quotes (#273)
JaZo Oct 1, 2020
214cb8a
Fixed Issue #264: <thead> element removed from <table> if there are n…
marartner Jan 26, 2021
1354e7e
Fix "Parameter must be an array or an object that implements Countabl…
bytestream Feb 28, 2021
6f9aac9
CSS: Add "background-size" tag support (#289)
Apr 22, 2021
3a368d7
Switch to GitHub Actions (#293)
bytestream May 22, 2021
288bf75
PHP 8 Support (#297)
makstech Jul 20, 2021
c97bb93
Fix GH workflow conditions (#298)
bytestream Jul 26, 2021
996eaf4
Remove unnecessary reference assigment (#301)
Axinet Sep 7, 2021
41fc223
feat: transform deprecated width attribute (#306)
bytestream Dec 24, 2021
1c784a5
ci: test on php 8.0 (#308)
bytestream Dec 24, 2021
12ab42b
Release 4.14.0
ezyang Dec 25, 2021
1dd3e52
PHP 8.1: fix various deprecations/errors in newest version of PHP (#310)
davidrans Apr 8, 2022
38296c6
Composer suggestions with extensions (#317)
func0der Jun 3, 2022
1db36fb
Fix some PHP 8.2 deprecations (#319)
TimWolla Jun 10, 2022
3fc193c
Fix #322 - PHP 8.1 deprecation notice in HostBlacklist URIFilter (#323)
bytestream Jun 27, 2022
dff4746
Replace 8.1-deprecated utf8_ funcs with mbstring (#326)
zerocrates Aug 16, 2022
be2a668
Treat PHP version numbers as strings in GitHub Actions (#327)
TimWolla Aug 30, 2022
6ec1363
Update to `actions/checkout@v3` (#328)
TimWolla Aug 30, 2022
c60bba1
Fix test selection logic in tests/test_files.php (#329)
TimWolla Sep 3, 2022
1b80051
Fix some more PHP 8.2 deprecations (#330)
TimWolla Sep 3, 2022
1c2bae1
Increase minimum requirement to PHP 5.6 (#331)
TimWolla Sep 3, 2022
dbbd3e5
Add contenteditable attribute definition (#332)
bytestream Sep 6, 2022
36e0660
Fix creation of dynamic property (#333)
bytestream Sep 6, 2022
ce9cf2e
Fix creation of dynamic property (#337)
bytestream Sep 10, 2022
dc27c78
Add PHP 8.2 to CI (#335)
TimWolla Sep 11, 2022
f1d6da1
Fix contenteditable attribute definition (#336)
bytestream Sep 12, 2022
2582405
Run CSSTidy tests on CI (#338)
bytestream Sep 15, 2022
8d9f4c9
Release 4.15.0
ezyang Sep 18, 2022
db31243
feat: add semantic release (#307)
bytestream Sep 18, 2022
523407f
chore(release): 4.16.0 [skip ci]
semantic-release-bot Sep 18, 2022
d82f3d9
fix: semantic release (#339)
bytestream Sep 18, 2022
3e83215
Revert "fix: semantic release (#339)" (#340)
ezyang Sep 18, 2022
e55fead
fix: semantic release (#341)
bytestream Sep 20, 2022
d567de8
Fixed undefined property (#346)
PHPGangsta Nov 19, 2022
2d13148
Added class_exists('Net_IDNA2') around optional external class (#351)
PHPGangsta Nov 19, 2022
909dda6
Fixed wrong return PHPDoc (#348)
PHPGangsta Nov 19, 2022
becc9d4
Fixed missing return value (#349)
PHPGangsta Nov 19, 2022
1424f17
Add support for encoded tel URI schemes. (#354)
codebymikey Nov 24, 2022
da35a5e
Drop supporting PHP 5.2 (#335) (#356)
kitrio Dec 4, 2022
2d775c0
feat: Add support for all text-decoration properties (#360)
Rah1x Jan 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 20 additions & 10 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,13 +1,23 @@
/.gitattributes export-ignore
/.github export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/Doxyfile export-ignore
/art/ export-ignore
/benchmarks/ export-ignore
/configdoc/ export-ignore
/art export-ignore
/benchmarks export-ignore
/configdoc export-ignore
/configdoc/usage.xml -crlf
/docs/ export-ignore
/phpdoc.ini
/smoketests/ export-ignore
/tests/* export-ignore
/tests/path2class.func.php -export-ignore
/docs export-ignore
/Doxyfile export-ignore
/extras export-ignore
/INSTALL* export-ignore
/maintenance export-ignore
/NEWS export-ignore
/package.php export-ignore
/plugins export-ignore
/phpdoc.ini export-ignore
/smoketests export-ignore
/test-* export-ignore
/tests export-ignore
/TODO export-ignore
/update-for-release export-ignore
/WYSIWYG export-ignore
/release.config.js export-ignore
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: ci

on:
push:
pull_request:

jobs:
linux_tests:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4', '8.0', '8.1', '8.2']

name: PHP ${{ matrix.php }}

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
tools: composer:v2
ini-values: error_reporting=E_ALL
extensions: iconv, bcmath, tidy, mbstring, intl

- name: Install dependencies
run: composer install

- name: Configure simpletest
run: cp test-settings.sample.php test-settings.php

- name: Execute Unit tests
run: php tests/index.php
19 changes: 19 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: "Lint PR"

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
name: Validate PR title

runs-on: ubuntu-latest

steps:
- uses: amannn/action-semantic-pull-request@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: release

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest

name: Release

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 5.5

- name: Run automated release process with semantic-release
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ PROJECT_NAME = HTMLPurifier
# This could be handy for archiving the generated documentation or
# if some version control system is used.

PROJECT_NUMBER = 4.12.0
PROJECT_NUMBER = 4.15.0

# The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute)
# base path where the generated documentation will be put.
Expand Down
46 changes: 46 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,52 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
. Internal change
==========================

4.15.0, released 2022-09-18
! PHP 8.1 and 8.2 support, esp. fixes for deprecation warnings. A joint effort
by David Rans, Tim Düsterhus, Kieran and John Flatness.
! Allow contenteditable="false" (#336), contributed by Kieran.
- Replace PHP 8.1 deprecated utf8_ functions with mbstring (#326),
contributed by John Flatness.
- Enhanced composer suggestions with extensions (#317), contributed by
func0der.

4.14.0, released 2021-12-24
! Add "background-size" support (#289), contributed by Václav Smítal
! Transform deprecated width attribute when tidying HTML, contributed by
Kieran.
- PHP 8 support, contributed by Maksims Sļotovs.
- Improved PHP 7.3 compatibility, contributed by kishor.
- Avoid spurious magic quotes notice in PHP 7.4. Thanks
Jasper Zonneveld for the fix.
- Do not remove thead from table even if there are no tbody/tr (#264).
Thanks Marcus Artner for the fix.
- Fix "Parameter must be an array or an object that implements
Countable" (#285)". Thanks Kieran for this fix.
. Fix unnecessary reference assignment, handling behavior change from
PHP5 and PHP7. Thanks Arkadiusz Biczewski for the fix.

4.13.0, released 2020-06-28
! Add %HTML.Forms directive, which lets you accept forms in user
HTML without requiring full %HTML.Trusted. Note that forms can
be (trivially) used to setup phishing; e.g., an attacker can
use CSS absolute positioning to overlay a form on top of a login
element, so please be sure to use this with care! Fixes #213.
Thanks Mateusz Turcza for contributing this feature.
! tr@bgcolor attribute is now supported. Thanks Kieran Brahney
for this enhancement.
- Further improvements to PHP 7.4 support, contributed by Witold
Wasiczko and Eloy Lafuente.
- Fix PSR-0 compatibility. Thanks Jordi Boggiano for contributing
part of this fix.
- Fix bug with purifyArray where it doesn't work on empty arrays.
Thanks Fräntz Miccoli for the fix.
- Reduce amount of maintenance scripts included in distribution
packages. Thanks Sergei Morozov for this patch.
- Remove leading zeros unless if it is only a zero, fixes #239. Thanks
lubomirbartos for this fix.
- Correct type hinting of maybeGet*, fixes #240. Thanks Anders Jenbo
for this fix.

4.12.0, released 2019-10-27
! PHP 7.4 is supported, thank you Witold Wasiczko, Mateuz Turcza and
Edi Modrić
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
HTML Purifier [![Build Status](https://secure.travis-ci.org/ezyang/htmlpurifier.svg?branch=master)](http://travis-ci.org/ezyang/htmlpurifier)
HTML Purifier [![Build Status](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/ezyang/htmlpurifier/actions/workflows/ci.yml)
=============

HTML Purifier is an HTML filtering solution that uses a unique combination
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.12.0
4.15.0
2 changes: 0 additions & 2 deletions WHATSNEW

This file was deleted.

22 changes: 19 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,32 @@
}
],
"require": {
"php": ">=5.2"
"php": "~5.6.0 || ~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0"
},
"require-dev": {
"simpletest/simpletest": "dev-master#72de02a7b80c6bb8864ef9bf66d41d2f58f826bd"
"cerdic/css-tidy": "^1.7 || ^2.0",
"simpletest/simpletest": "dev-master"
},
"autoload": {
"psr-0": { "HTMLPurifier": "library/" },
"files": ["library/HTMLPurifier.composer.php"],
"exclude-from-classmap": [
"/library/HTMLPurifier/Language/"
]
}
},
"suggest": {
"cerdic/css-tidy": "If you want to use the filter 'Filter.ExtractStyleBlocks'.",
"ext-iconv": "Converts text to and from non-UTF-8 encodings",
"ext-bcmath": "Used for unit conversion and imagecrash protection",
"ext-tidy": "Used for pretty-printing HTML"
},
"config": {
"sort-packages": true
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/ezyang/simpletest.git"
}
]
}
Loading