Modify

Opened 7 years ago

Closed 7 years ago

#13215 closed defect (fixed)

sanitize_attrs() takes exactly 3 arguments (2 given)

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Component: WikiExtrasPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

With updates on Trac trunk, the signature of TracHTMLSanitizer has changed:

  • wikiextrasplugin/trunk/tracwikiextras/util.py

    diff --git a/wikiextrasplugin/trunk/tracwikiextras/util.py b/wikiextrasplugin/trunk/tracwikiextras/util.py
    index ec8a5069f..d7d408677 100755
    a b def reduce_names(names, keep=40): 
    264264if sanitizer:
    265265    def sanitize_attrib(env, element):
    266266        if not WikiSystem(env).render_unsafe_content:
    267             sanitized = sanitizer.sanitize_attrs(element.attrib)
     267            sanitized = sanitizer.sanitize_attrs(element.tag, element.attrib)
    268268            element = Element(element.tag, **sanitized)
    269269        return element
    270270else:

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by Ryan J Ollos

Owner: changed from Mikael Relbe to Ryan J Ollos
Status: newaccepted

comment:2 Changed 7 years ago by Ryan J Ollos

Resolution: fixed
Status: acceptedclosed

In 16665:

TracWikiExtras 1.3.1dev: Make compatible with Trac >= trac:r16037

Fixes #13215.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.