fixed an attachment download issue

This commit is contained in:
SJ 2013-03-24 23:49:52 +01:00
parent d77b6da1a6
commit 878c361f1f
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ class ModelSearchMessage extends Model {
$s = substr($data, 0, 4096);
$s = preg_replace("/(\r|\n)/", "", $s);
if(!preg_replace("/\s/", $s)) {
if(!preg_match("/\s/", $s)) {
return base64_decode(preg_replace("/\s/", "", $data));
}

View File

@ -37,7 +37,7 @@
<input type="hidden" name="sort" id="sort" value="date" />
<input type="hidden" name="order" id="order" value="0" />
<input type="text" id="_search" name="_search" class="advtextgrey" value="" placeholder="<?php print $text_enter_search_terms; ?>" />
<input type="text" id="_search" name="_search" class="advtextgrey" value="" placeholder="<?php print $text_enter_search_terms; ?>" onclick="Piler.toggle_search_class();" />
<button id="button_search" class="active" onclick="Piler.auditexpert(this);"><?php print $text_search; ?></button>
<input type="button" class="advsecondary" onclick="Piler.cancel();" value="<?php print $text_cancel; ?>" />

View File

@ -39,7 +39,7 @@
<input type="hidden" name="ref" id="ref" value="" />
<input type="hidden" name="prefix" id="prefix" value="" />
<input type="text" id="_search" name="_search" class="advtextgrey" value="" placeholder="<?php print $text_enter_search_terms; ?>" />
<input type="text" id="_search" name="_search" class="advtextgrey" value="" placeholder="<?php print $text_enter_search_terms; ?>" onclick="Piler.toggle_search_class();" />
<div class="aoo" onclick="$('#searchpopup1').show();">
<div class="aoq"></div>