From: Lars Hjemli Date: Sun, 1 Feb 2009 18:17:52 +0000 (+0100) Subject: Merge branch 'lh/header' X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/0b3c746ba80738dbe0885a21406409390936537c?hp=b115955d71c50cd2d0065c45f3df6b02fa4730bd Merge branch 'lh/header' --- diff --git a/html.c b/html.c index d7d9fd7..66ba65d 100644 --- a/html.c +++ b/html.c @@ -112,14 +112,16 @@ void html_attr(char *txt) char *t = txt; while(t && *t){ int c = *t; - if (c=='<' || c=='>' || c=='\'') { + if (c=='<' || c=='>' || c=='\'' || c=='\"') { write(htmlfd, txt, t - txt); if (c=='>') html(">"); else if (c=='<') html("<"); else if (c=='\'') - html(""e;"); + html("'"); + else if (c=='"') + html("""); txt = t+1; } t++;