Fix: quote html calendrier absences (signalé par JMP)

This commit is contained in:
viennet 2020-12-31 00:46:21 +01:00
parent ea421f72c8
commit 206b01a5a8
2 changed files with 5 additions and 2 deletions

View File

@ -47,6 +47,7 @@ L'API de plus bas niveau est en gros:
import urllib import urllib
import datetime import datetime
import jaxml import jaxml
import cgi
# --------------- # ---------------
from sco_zope import * from sco_zope import *
@ -2279,7 +2280,7 @@ def MonthTableBody(
if href: if href:
href = 'href="%s"' % href href = 'href="%s"' % href
if descr: if descr:
descr = 'title="%s"' % descr descr = 'title="%s"' % cgi.escape(descr, quote=True)
if href or descr: if href or descr:
cc.append("<a %s %s>" % (href, descr)) cc.append("<a %s %s>" % (href, descr))
@ -2371,7 +2372,7 @@ def MonthTableBody(
if href: if href:
href = 'href="%s"' % href href = 'href="%s"' % href
if descr: if descr:
descr = 'title="%s"' % descr descr = 'title="%s"' % cgi.escape(descr, quote=True)
if href or descr: if href or descr:
cc.append("<a %s %s>" % (href, descr)) cc.append("<a %s %s>" % (href, descr))
if legend or d == 1: if legend or d == 1:

View File

@ -28,6 +28,8 @@ if [ "$1" = "-r" ]
then then
shift shift
recreate_dept=1 recreate_dept=1
else
recreate_dept=0
fi fi