Nicolas01 / Highlightjs_Integration

A MediaWiki extension to use the client-side syntax highlighter highlight.js
GNU Affero General Public License v3.0
8 stars 3 forks source link

SyntaxHighlight uses deprecated Sanitizer::validateAttributes syntax #13

Closed RenHoekNL closed 1 year ago

RenHoekNL commented 1 year ago

On a page where I use SyntaxHighlight, once I click submit, I get a huge page with warnings, foremost:

Deprecated: Use of Sanitizer::validateAttributes with sequential array was deprecated in MediaWiki 1.35. [Called from HighlightjsIntegration::renderSyntaxhighlight in C:\wamp\www\wiki\extensions\Highlightjs_Integration-master\HighlightjsIntegration.class.php at line 42] in C:\wamp\www\wiki\includes\debug\MWDebug.php on line 381

I'm using Mediawiki 1.39.1 (lastest) with latest version of Highlightjs_Integration.

Nicolas01 commented 1 year ago

Thanks for the feedback. I am going to publish a new version soon to fix it.

Nicolas01 commented 1 year ago

Fixed in version 2.2

RenHoekNL commented 1 year ago

Thanks for the fix!