diff options
author | Yorhel <git@yorhel.nl> | 2010-12-23 22:21:31 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2010-12-23 22:21:31 +0100 |
commit | 197b3fa97bc86428fb6292d494afc22c6c364b30 (patch) | |
tree | cd057cd9e3bf45b9127c550b750ced4fe7b92419 /index.cgi | |
parent | b6f0e0e3c7ac1fafa5a610175008d32b820d3880 (diff) |
Fixed posting bug caused by previous commit
*sigh* always test something after changing it...
Diffstat (limited to 'index.cgi')
-rwxr-xr-x | index.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -146,7 +146,7 @@ sub upload { msg("You don't have much to paste, do you?", 'backform') if $dat =~ /^[ \n\s\t]*$/s && $s ne 'whitespace'; my $html = $s eq 'nosyntax' ? undef : get_html({ raw => $dat, syntax => $s, parse_urls => $c}); - $db->do('INSERT INTO pastes (code, syntax, wrap, raw, html, parse_urls, passcode) VALUES(?,?,?,?,?,?,?,?)', + $db->do('INSERT INTO pastes (code, syntax, wrap, raw, html, parse_urls, passcode) VALUES(?,?,?,?,?,?,?)', undef, $code, $s, $w, $dat, $html, $c, $p || undef); print "Status: 303\n${cookie}Location: http://$ENV{HTTP_HOST}/$code\nContent-type: text/plain\n\nRedirecting...\n"; |