diff options
| author | bwarsaw | 1999-12-11 04:52:07 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-12-11 04:52:07 +0000 |
| commit | bc46da826975179abcb7ba773aa8b52064523fcd (patch) | |
| tree | 148fb07b22fca45bfa5ae4f73eef4578405a11d0 | |
| parent | 10b5fa55e89f224930f9ea11680ceebb78e9be29 (diff) | |
| download | mailman-bc46da826975179abcb7ba773aa8b52064523fcd.tar.gz mailman-bc46da826975179abcb7ba773aa8b52064523fcd.tar.zst mailman-bc46da826975179abcb7ba773aa8b52064523fcd.zip | |
Balazs Nagy <julian7@kva.hu> writes:
I did a little digging about entering text with accents. It's a
bit curious that one can type accents in textarea but to textbox
cannot. In the latter case you can see an escaped print of your
input.
In the end I came to htmlformat.py's InputObj. At this point I
have a humble question: who put `-s around value? After a
s/`value`/value/ in line #368, almost everything works fine,
because this brings up a problem about quoting. Of course, the
patch is here.
| -rw-r--r-- | Mailman/htmlformat.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index 0905dabde..e51e6d1c1 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -365,16 +365,16 @@ class InputObj: def __init__(self, name, ty, value, checked, **kws): self.name = name self.type = ty - self.value = `value` + self.value = value self.checked = checked self.kws = kws def Format(self, indent=0): - output = '<INPUT name=%s type=%s value=%s' % (self.name, self.type, - self.value) + output = '<INPUT name="%s" type="%s" value="%s"' % ( + self.name, self.type, self.value) for (key, val) in self.kws.items(): - output = '%s %s=%s' % (output, key, val) + output = '%s "%s"="%s"' % (output, key, val) if self.checked: output = output + ' CHECKED' |
