Allow hash links in safe mode

This commit is contained in:
Xavier Mendez 2014-08-04 12:03:12 +02:00
parent c7af7d235a
commit b77fe624a9

View file

@ -12,9 +12,9 @@
int
hoedown_autolink_is_safe(const uint8_t *link, size_t link_len)
{
static const size_t valid_uris_count = 5;
static const size_t valid_uris_count = 6;
static const char *valid_uris[] = {
"/", "http://", "https://", "ftp://", "mailto:"
"#", "/", "http://", "https://", "ftp://", "mailto:"
};
size_t i;