chiark / gitweb /
bin/pastebin.userv: Don't throw the supplied content away.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 Nov 2015 15:44:33 +0000 (15:44 +0000)
committerMark 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

index fd263bd..fe9e55d 100755 (executable)
@@ -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}'";