mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
Flag the raw: pseudo-protocol with DENY_HTML -- if -fnohtml is set,
the raw: protocol is disabled no matter what because it lets you stuff random html into your code.
This commit is contained in:
+1
-1
@@ -615,7 +615,7 @@ static linkytype linkt = { 0, 0, "<a href=\"", "\"",
|
||||
static linkytype specials[] = {
|
||||
{ "id:", 3, "<a id=\"", "\"", 0, ">", "</a>", 0, IS_URL },
|
||||
{ "class:", 6, "<span class=\"", "\"", 0, ">", "</span>", 0, 0 },
|
||||
{ "raw:", 4, 0, 0, 0, 0, 0, 0, 0 },
|
||||
{ "raw:", 4, 0, 0, 0, 0, 0, DENY_HTML, 0 },
|
||||
{ "abbr:", 5, "<abbr title=\"", "\"", 0, ">", "</abbr>", 0, 0 },
|
||||
} ;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user