Code Duplication    Length = 4-4 lines in 2 locations

sources/upload/upload.attachments.php 2 locations

@@ 283-286 (lines=4) @@
280
        // Open temp file
281
        $out = fopen("{$filePath}.part", $chunk == 0 ? "wb" : "ab");
282
283
        if (isset($_SESSION['settings']['enable_attachment_encryption']) && $_SESSION['settings']['enable_attachment_encryption'] === "1") {
284
            // Add the Mcrypt stream filter
285
            stream_filter_append($out, 'mcrypt.tripledes', STREAM_FILTER_WRITE, $opts);
286
        }
287
288
        if ($out) {
289
            // Read binary input stream and append it to temp file
@@ 320-323 (lines=4) @@
317
    // Open temp file
318
    $out = fopen("{$filePath}.part", $chunk == 0 ? "wb" : "ab");
319
320
    if (isset($_SESSION['settings']['enable_attachment_encryption']) && $_SESSION['settings']['enable_attachment_encryption'] === "1") {
321
        // Add the Mcrypt stream filter
322
        stream_filter_append($out, 'mcrypt.tripledes', STREAM_FILTER_WRITE, $opts);
323
    }
324
325
    if ($out) {
326
        // Read binary input stream and append it to temp file