Permalink
Browse files

MINOR: files uploaded from forms should be hidden from the search engine

  • Loading branch information...
wilr committed Sep 15, 2011
1 parent bb2ac5e commit 9020ce82d0402559a6393d1329fe5ae647d2b489
Showing with 1 addition and 0 deletions.
  1. +1 −0 code/UserDefinedForm.php
View
@@ -680,6 +680,7 @@ function process($data, $form) {
// create the file from post data
$upload = new Upload();
$file = new File();
+ $file->ShowInSearch = 0;
$upload->loadIntoFile($_FILES[$field->Name], $file);

0 comments on commit 9020ce8

Please sign in to comment.