chiark
/
gitweb
/
~mdw
/
odin-cgi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
98984c9
)
bin/pastebin.userv: Don't throw the supplied content away.
author
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 Nov 2015 15:44:33 +0000
(15:44 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Thu, 26 Nov 2015 18:50:29 +0000
(18:50 +0000)
Oh, where do I start? There's just so much edit debris here that it's
not funny.
bin/pastebin.userv
patch
|
blob
|
blame
|
history
diff --git
a/bin/pastebin.userv
b/bin/pastebin.userv
index fd263bd089bceccf9e043464ca48734ad38240d0..fe9e55d52e05cec4372ac38fdc83f918798de1ad 100755
(executable)
--- a/
bin/pastebin.userv
+++ b/
bin/pastebin.userv
@@
-60,10
+60,6
@@
EOF
$op->bad if @ARGV;
$op->ok or Odin::fail "usage: new [-l LANG] [-t TITLE]";
$p{content} = read_content;
- my $db = Odin::open_db;
- my $c = "";
- while (read STDIN, my $buf, 8192) { $c .= $buf; }
- $p{content} = read_content;
@{$db->selectall_arrayref
("SELECT lang FROM odin_pastebin_lang WHERE lang = ?", undef, $p{lang})}
or Odin::fail "unknown language `$p{lang}'";