<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Odd that you're getting that, I don't at all, library files work
perfectly.<br>
Are you sure you've got the very latest versions of the templates in
your system? If you've modified the template files at all then it
might not have overwritten your modified template with the latest
one. The one of interest here is new_dropoff.tpl.<br>
<br>
If you are sure that is all correct (size of that file should be
16504 bytes), then edit NSSDropoff.php and change the chunk of code
around line the "chmod" to this:<br>
<br>
// Call clamdscan on all the files, fail if they are infected<br>
// If the name of the scanner is set to '' or 'DISABLED' then
skip this.<br>
$jkfclamdscan = $this->_dropbox->clamdscan();<br>
if ($jkfclamdscan != 'DISABLED') {<br>
$jkffilecount = 1;<br>
$jkffilelist = '';<br>
$foundsometoscan = FALSE;<br>
while ( $jkffilecount <= $this->maxFilesKey ) {<br>
$key = "file_".$jkffilecount;<br>
if (array_key_exists($key, $_FILES) &&<br>
array_key_exists('tmp_name', $_FILES[$key])) {<br>
$jkffilelist .= ' ' . $_FILES[$key]['tmp_name'];<br>
$foundsometoscan = TRUE;<br>
}<br>
$jkffilecount++;<br>
}<br>
if ($foundsometoscan) { // Don't do any of this if they
uploaded nothing<br>
exec("/bin/chmod go+r " . $jkffilelist); // Need clamd to
read them!<br>
$jkfinfected = 0;<br>
$jkfoutput = array();<br>
$jkfclam = exec($jkfclamdscan . $jkffilelist, $jkfoutput,
$jkfinfected);<br>
if ($jkfinfected == 1) {<br>
return $smarty->getConfigVariable('ErrorVirusFound');<br>
}<br>
if ($jkfinfected == 2) {<br>
return $smarty->getConfigVariable('ErrorVirusFailed');<br>
}<br>
}<br>
}<br>
<br>
If you're not happy working out what to do with that then don't
attempt it. :-)<br>
<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 04/10/2012 12:44, Rini van Zetten
wrote:<br>
</div>
<blockquote cite="mid:506D76AD.5060003@arvoo.com" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi Jules,<br>
<br>
When i select a library file to drop i get the message :
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<table class="UD_error" style="color: rgb(22, 38, 55);
font-family: 'Helvetica Neue', Helvetica, Verdana, Arial,
sans-serif; font-size: 13px; font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: start; text-indent:
0px; text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; " width="50%">
<tbody>
<tr>
<td class="UD_error_title">Upload Error</td>
</tr>
<tr>
<td class="UD_error_message">The attempt to virus-scan your
drop-off failed. Please contact your administrator for
assistance.</td>
</tr>
</tbody>
</table>
<br>
In my apache2 error log this line appears :<br>
/bin/chmod: missing operand after `g+r'<br>
Try `/bin/chmod --help' for more information.<br>
<br>
It's caused by th parameter jkffilelist in NSSDropoff.php which is
empty.<br>
I can place an extra test in this file which skips the virus scan
when the jkffilelist is empty but there may be other solutions.<br>
<br>
This bug occurs in 4.10 as well as in the 4.11 beta.<br>
<br>
Regards,<br>
<br>
<div class="moz-signature">-- <br>
<b>Rini van Zetten<b><br>
<i>Senior Software Engineer</i><br>
<br>
-------------------------<br>
ARVOO Engineering B.V.<br>
Tasveld 13<br>
3417 XS Montfoort<br>
The Netherlands<br>
<br>
Tel : 0348-418412<br>
<br>
E-mail : <a moz-do-not-send="true"
href="mailto:rini@arvoo.com">rini@arvoo.com</a><br>
<br>
Web : <a moz-do-not-send="true" href="http://www.arvoo.com">www.arvoo.com</a><br>
</b></b></div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a></pre>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng MBCS CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
'When a man points a finger at someone else, he should remember
that four of his fingers are pointing at himself.' - Louis Nizer
</pre>
</blockquote>
</body>
</html>