OSDN Git Service

editlogのログファイルから取得したページ名をURLデコードしわすれていたのを修正。
authortakezoe <takezoe@users.osdn.me>
Sun, 15 Apr 2012 18:19:29 +0000 (18:19 +0000)
committertakezoe <takezoe@users.osdn.me>
Sun, 15 Apr 2012 18:19:29 +0000 (18:19 +0000)
plugin/core/Diff.pm

index 08cfed0..2c41cdb 100644 (file)
@@ -111,6 +111,7 @@ sub show_history {
                open(DATA,$wiki->config('log_dir')."/useredit.log") or die $!;
                while(<DATA>){
                        my($date, $time, $unixtime, $action, $subject, $id) = split(" ",$_);
+                       $subject = Util::url_decode($subject);
                        if($subject eq $page){
                                if($id eq ''){
                                        $editlog->{substr($unixtime, 0, length($unixtime) - 4)} = 'anonymous';