Sanitize data-file attribute from page. #2845

This commit is contained in:
ccd0 2021-01-13 22:28:13 -08:00
parent 3b4bc9db7d
commit c8068ee9d6

View File

@ -184,7 +184,7 @@ Gallery =
if Conf['Sauce'] and Sauce.links and (post = g.posts.get(file.dataset.post))
sauces = []
for link in Sauce.links
if (node = Sauce.createSauceLink link, post, post.files[file.dataset.file])
if (node = Sauce.createSauceLink link, post, post.files[+file.dataset.file])
sauces.push $.tn(' '), node
$.add nodes.sauce, sauces