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): 264 264 if sanitizer: 265 265 def sanitize_attrib(env, element): 266 266 if not WikiSystem(env).render_unsafe_content: 267 sanitized = sanitizer.sanitize_attrs(element. attrib)267 sanitized = sanitizer.sanitize_attrs(element.tag, element.attrib) 268 268 element = Element(element.tag, **sanitized) 269 269 return element 270 270 else:
Attachments (0)
Change History (2)
comment:1 Changed 7 years ago by
Owner: | changed from Mikael Relbe to Ryan J Ollos |
---|---|
Status: | new → accepted |
comment:2 Changed 7 years ago by
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
Note: See
TracTickets for help on using
tickets.
In 16665: