Skip to content
Snippets Groups Projects
Commit 7805c10d authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Solve the same thing in a safer way by encoding name tags in the same

way as href.

Rev: tutorial/Html.pmod:1.4
parent 60bdc2d9
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,6 @@ void create()
case '.':
case ';':
case ':':
case '`':
break;
default:
......@@ -61,6 +60,7 @@ string mktag(string tag, mapping params)
switch(i)
{
case "href":
case "name":
ret+="='"+quote_param(params[i])+"'";
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment