From d9126e110566b42b3f0e9e3105ff51158ab56ac8 Mon Sep 17 00:00:00 2001 From: Adam Backstrom Date: Mon, 17 Sep 2012 14:18:32 -0400 Subject: [PATCH] Add quoted_printable_encode() --- classes.php | 15 +++++++++++++++ index.php | 1 + 2 files changed, 16 insertions(+) diff --git a/classes.php b/classes.php index 39959c3..5385272 100644 --- a/classes.php +++ b/classes.php @@ -53,6 +53,21 @@ class ActionQuotedPrintableDecode extends AbstractAction } } +class ActionQuotedPrintableEncode extends AbstractAction +{ + public function __construct( $value ) + { + parent::__construct( $value ); + $this->setContainer( new TextareaContainer ); + $this->setFormatter( new EchoFormatter ); + } + + public function decode() + { + return quoted_printable_encode( $this->value ); + } +} + class ActionBase64Encode extends AbstractAction { public function __construct( $value ) diff --git a/index.php b/index.php index d3cc094..f306cc3 100644 --- a/index.php +++ b/index.php @@ -36,6 +36,7 @@ if( 'POST' === $_SERVER['REQUEST_METHOD'] ) {