summaryrefslogtreecommitdiff
path: root/lib/JWebmail/Plugin/Helper.pm
diff options
context:
space:
mode:
authorJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 21:58:10 +0200
committerJannis M. Hoffmann <jannis.hoffmann@rwth-aachen.de>2022-05-01 21:58:10 +0200
commit883a3c9379de774a3035986e90614decd8626207 (patch)
tree3e75f3d82f560f446f670faff78c927eacbfa63e /lib/JWebmail/Plugin/Helper.pm
parent8387d8eb466e1187ee6caeaeb773d67652797731 (diff)
merged read and raw routes
Diffstat (limited to 'lib/JWebmail/Plugin/Helper.pm')
-rw-r--r--lib/JWebmail/Plugin/Helper.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/JWebmail/Plugin/Helper.pm b/lib/JWebmail/Plugin/Helper.pm
index 3281d26..be147fe 100644
--- a/lib/JWebmail/Plugin/Helper.pm
+++ b/lib/JWebmail/Plugin/Helper.pm
@@ -113,7 +113,7 @@ my $render_text_plain = sub {
my $render_text_html = sub {
my $c_ = shift;
- return '<iframe src="' . $c_->url_for('rawid', id => $c_->stash('id'))->query(body => 'html') . '" class=html-mail></iframe>';
+ return '<iframe src="' . $c_->url_for('read', id => $c_->stash('id'))->query(body => 'html') . '" class=html-mail></iframe>';
};
@@ -355,7 +355,7 @@ Helper - Functions used as helpers in controller and templates and additional va
L<JWebmail::Helper> provides useful helper functions and validator cheks and filter for
L<JWebmail::Controller::All> and various templates.
-=head1 FUNCTIONS
+=head1 HELPERS
=head2 mail_line
@@ -393,7 +393,7 @@ This is not registered by default.
=head2 paginate
-A helper for calculationg page bounds.
+A helper for calculating page bounds.
Takes the total number of items as argument.
@@ -426,7 +426,7 @@ The output is valid html and should not be escaped.
=head2 session_passwd
-A helper used to set and get the session password. The behaivour can be altered by
+A helper used to set and get the session password. The behavior can be altered by
setting the config variable C<< session => {secure => 's3d'} >>.
$app->helper(session_passwd => \&JWebmail::Plugin::Helper::session_passwd);
@@ -454,7 +454,7 @@ data is stored on the server. Additionally the password is encrypted by an one-t
=head1 DEPENDENCIES
-Mojolicious, Crypt::Random and optianally Digest::HMAC_MD5.
+Mojolicious and optionally Digest::HMAC_MD5, Crypt::URandom.
=head1 SEE ALSO