diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 20:18:16 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 20:18:16 +0000 |
commit | 929b9de9c2b0f3ed1a0c9e006d084519bd5e0479 (patch) | |
tree | 96247503fe0eda132c39375f87cc15b93c3f5905 /IkiWiki/CGI.pm | |
parent | fa9517e5bb07fad29fddb219e6c8e8f1b0a08d7e (diff) | |
download | ikiwiki-929b9de9c2b0f3ed1a0c9e006d084519bd5e0479.tar ikiwiki-929b9de9c2b0f3ed1a0c9e006d084519bd5e0479.tar.gz |
Encode is used in nearly all code paths so stop loading it on demand
Diffstat (limited to 'IkiWiki/CGI.pm')
-rw-r--r-- | IkiWiki/CGI.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index b2d126977..73afe2468 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -5,6 +5,7 @@ use strict; use IkiWiki; use IkiWiki::UserInfo; use encoding 'utf8'; # force use of utf8 for io layer +use Encode; package IkiWiki; @@ -352,7 +353,6 @@ sub cgi_editpage ($$) { #{{{ require IkiWiki::Render; # Apparently FormBuilder doesn't not treat input as # utf-8, so decode from it. - require Encode; my $content = Encode::decode_utf8($form->field('editcontent')); my $comments = Encode::decode_utf8($form->field('comments')); $form->field(name => "editcontent", @@ -442,7 +442,6 @@ sub cgi_editpage ($$) { #{{{ page_locked($page, $session); # Decode utf-8 since FormBuilder does not - require Encode; my $content=Encode::decode_utf8($form->field('editcontent')); $content=~s/\r\n/\n/g; |