summaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2010-12-23 22:21:31 +0100
committerYorhel <git@yorhel.nl>2010-12-23 22:21:31 +0100
commit197b3fa97bc86428fb6292d494afc22c6c364b30 (patch)
treecd057cd9e3bf45b9127c550b750ced4fe7b92419 /index.cgi
parentb6f0e0e3c7ac1fafa5a610175008d32b820d3880 (diff)
Fixed posting bug caused by previous commit
*sigh* always test something after changing it...
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.cgi b/index.cgi
index b142325..7bd4759 100755
--- a/index.cgi
+++ b/index.cgi
@@ -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";