chiark
/
gitweb
/
~mdw
/
odin-cgi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/Odin.pm, mason/pastebin/dhandler: Apply a size limit on pastes.
[odin-cgi]
/
mason
/
pastebin
/
dhandler
diff --git
a/mason/pastebin/dhandler
b/mason/pastebin/dhandler
index d798eef2eaf4d02ce46547b3f30f797f155a0e19..85839815ddd55acf775ce292832dae4852200d18 100644
(file)
--- a/
mason/pastebin/dhandler
+++ b/
mason/pastebin/dhandler
@@
-76,6
+76,15
@@
tag ‘<% $tag %>’ 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