Code Duplication    Length = 4-8 lines in 2 locations

src/wp-admin/includes/class-pclzip.php 2 locations

@@ 3682-3689 (lines=8) @@
3679
      $v_inclusion
3680
      = PclZipUtilPathInclusion($p_options[PCLZIP_OPT_EXTRACT_DIR_RESTRICTION],
3681
                                $p_entry['filename']);
3682
      if ($v_inclusion == 0) {
3683
3684
        PclZip::privErrorLog(PCLZIP_ERR_DIRECTORY_RESTRICTION,
3685
			                     "Filename '".$p_entry['filename']."' is "
3686
								 ."outside PCLZIP_OPT_EXTRACT_DIR_RESTRICTION");
3687
3688
        return PclZip::errorCode();
3689
      }
3690
    }
3691
3692
    // ----- Look for pre-extract callback
@@ 3865-3868 (lines=4) @@
3862
        else {
3863
          // ----- TBC
3864
          // Need to be finished
3865
          if (($p_entry['flag'] & 1) == 1) {
3866
            PclZip::privErrorLog(PCLZIP_ERR_UNSUPPORTED_ENCRYPTION, 'File \''.$p_entry['filename'].'\' is encrypted. Encrypted files are not supported.');
3867
            return PclZip::errorCode();
3868
          }
3869
3870
3871
          // ----- Look for using temporary file to unzip