summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
Diffstat (limited to 'system')
-rw-r--r--system/application/controllers/file.php3
-rw-r--r--system/application/views/file/upload_form.php1
2 files changed, 4 insertions, 0 deletions
diff --git a/system/application/controllers/file.php b/system/application/controllers/file.php
index e42d1d3db..4fed02599 100644
--- a/system/application/controllers/file.php
+++ b/system/application/controllers/file.php
@@ -129,6 +129,9 @@ class File extends Controller {
$data = array();
$content = $this->input->post('content')."\n";
$extension = $this->input->post('extension');
+ // Try to filter spambots
+ if ($this->input->post("email") != "") return;
+
// prevent empty pastes from the upload form
if($content === "\n") {
$this->upload_form();
diff --git a/system/application/views/file/upload_form.php b/system/application/views/file/upload_form.php
index fe3f5db5a..0f90bab0e 100644
--- a/system/application/views/file/upload_form.php
+++ b/system/application/views/file/upload_form.php
@@ -10,6 +10,7 @@
<?php echo form_open_multipart('file/do_paste'); ?>
<p>
<textarea name="content" cols="80" rows="20"></textarea><br />
+ <div style="display: none">Email: <input type="text" name="email" size="20" /></div>
Optional password (for deletion): <input type="password" name="password" size="10" /><br />
<input type="submit" value="Paste" name="process" />
</p>