]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/bzr.pm
rename todo/merge_tincho-osm_branch.mdwn to todo/merge_tina-osm_branch.mdwn
[git.ikiwiki.info.git] / IkiWiki / Plugin / bzr.pm
index 99a07d2c0eb2afa5512f6fc96043df6ff24171ff..5ec254f84ff9af7a9a3cd69b73902923b43527bc 100644 (file)
@@ -133,10 +133,10 @@ sub bzr_author ($) {
        my $ipaddr=$session->remote_addr();
 
        if (defined $user) {
-               return IkiWiki::possibly_foolish_untaint($user);
+               return IkiWiki::possibly_foolish_untaint(IkiWiki::cloak($user));
        }
        elsif (defined $ipaddr) {
-               return "Anonymous from ".IkiWiki::possibly_foolish_untaint($ipaddr);
+               return "Anonymous from ".IkiWiki::possibly_foolish_untaint(IkiWiki::cloak($ipaddr));
        }
        else {
                return "Anonymous";
@@ -302,7 +302,7 @@ sub extract_timestamp (@) {
        open (my $out, "-|", @_);
        my @log = bzr_log($out);
 
-       if (length @log < 1) {
+       if (length(scalar(@log)) < 1) {
                return 0;
        }