chiark / gitweb /
lib/Odin.pm, mason/pastebin/dhandler: Apply a size limit on pastes.
[odin-cgi] / mason / pastebin / dhandler
index d798eef2eaf4d02ce46547b3f30f797f155a0e19..85839815ddd55acf775ce292832dae4852200d18 100644 (file)
@@ -76,6 +76,15 @@ tag &lsquo;<% $tag %>&rsquo; not found
 </%args>
 </%def>
 %#
+<%def .badpaste>
+<&| SELF:error, status => 400 &>\
+invalid paste content
+</&>
+<%args>
+       $tag
+</%args>
+</%def>
+%#
 <%def .badhash>
 <&| SELF:error, status => 403 &>\
 incorrect edit key