Commit 1619cad1e8ac6ba9cc87666caae9e71f20fd6b32

Authored by Jay Berkenbilt
1 parent e1cd5891

Return correct method for string encryption (fixes #227)

Showing 1 changed file with 1 additions and 1 deletions
libqpdf/QPDF_encryption.cc
@@ -1396,7 +1396,7 @@ QPDF::isEncrypted(int& R, int& P, int& V, @@ -1396,7 +1396,7 @@ QPDF::isEncrypted(int& R, int& P, int& V,
1396 R = Rkey.getIntValue(); 1396 R = Rkey.getIntValue();
1397 V = Vkey.getIntValue(); 1397 V = Vkey.getIntValue();
1398 stream_method = this->m->cf_stream; 1398 stream_method = this->m->cf_stream;
1399 - string_method = this->m->cf_stream; 1399 + string_method = this->m->cf_string;
1400 file_method = this->m->cf_file; 1400 file_method = this->m->cf_file;
1401 return true; 1401 return true;
1402 } 1402 }