Escape repository descriptions.
Mon May 29 15:04:37 UTC 2006 Alberto Bertogli <albertogli@telpin.com.ar>
* Escape repository descriptions.
Escape all repository descriptions, because they might contain unfrendly
characters for XML (including HTML, ATOM and RSS).
Thanks to Clive Crous for the report and a slightly different patch.
{
hunk ./darcsweb.cgi 1342
- print ' <tr><td>description</td><td>%s</td></tr>' % config.repodesc
+ print ' <tr><td>description</td><td>%s</td></tr>' % \
+ escape(config.repodesc)
hunk ./darcsweb.cgi 1874
- 'desc': config.repodesc,
+ 'desc': escape(config.repodesc),
hunk ./darcsweb.cgi 1948
- 'desc': config.repodesc,
+ 'desc': escape(config.repodesc),
}