From 6cbd7f6634f86c797202de42f3c4a272d840b7a3 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Mon, 28 Jun 2010 12:33:55 -0500 Subject: [PATCH] Check the actual format --- lib/openpgp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openpgp.php b/lib/openpgp.php index a61cd58..af25d9e 100644 --- a/lib/openpgp.php +++ b/lib/openpgp.php @@ -1093,7 +1093,7 @@ class OpenPGP_LiteralDataPacket extends OpenPGP_Packet { } function normalize() { - if($opt['format'] == 'u' || $opt['format'] == 't') { // Normalize line endings + if($this->format == 'u' || $this->format == 't') { // Normalize line endings $this->data = str_replace("\n", "\r\n", str_replace("\r", "\n", str_replace("\r\n", "\n", $this->data))); } }