Skip to content

Commit c2f9e26

Browse files
committed
fix: double escaping of data-calurl prevent use.
data-calurl escaped the '&'s replacing them with the entity code. Then the value was processed again by cgi_escape_attrs double escaping the value making it unusable if passed to help_window().
1 parent 8185714 commit c2f9e26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2438,7 +2438,7 @@ def popcal(self, width=300, height=200, label="(cal)",
24382438
date = ""
24392439

24402440
data_attr = {
2441-
"data-calurl": '%s?@template=calendar&property=%s&form=%s%s' % (
2441+
"data-calurl": '%s?@template=calendar&property=%s&form=%s%s' % (
24422442
self._classname, self._name, form, date),
24432443
"data-width": width,
24442444
"data-height": height

0 commit comments

Comments
 (0)