From 941b65eb327a06fda020a4c569451646db054f6f Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Fri, 17 Feb 2006 09:16:00 +0000
Subject: [PATCH] 2006-02-17  jrandom     * Disable the message history log
 file by default (duh - feel free to       delete messageHistory.txt after
 upgrading.  thanks deathfatty!)     * Limit the size of the inbound tunnel
 build request queue so we don't       get an insane backlog of requests that
 we're bound to reject, and adjust       the queue processing so we keep on
 churning through them when we've got       a backlog.     * Small fixes for
 the multiuser syndie operation (thanks Complication!)     * Renamed modified
 PRNG classes that were imported from gnu-crypto so we       don't conflict
 with JVMs using that as a JCE provider (thanks blx!)

---
 apps/syndie/java/src/net/i2p/syndie/User.java              | 7 ++++++-
 .../java/src/net/i2p/syndie/web/ImportFeedServlet.java     | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/apps/syndie/java/src/net/i2p/syndie/User.java b/apps/syndie/java/src/net/i2p/syndie/User.java
index b4805bbc4c..b469908cfe 100644
--- a/apps/syndie/java/src/net/i2p/syndie/User.java
+++ b/apps/syndie/java/src/net/i2p/syndie/User.java
@@ -106,7 +106,12 @@ public class User {
     public String getUsername() { return _username; }
     public String getUserHash() { return _userHash; }
     public Hash getBlog() { return _blog; }
-    public String getBlogStr() { return Base64.encode(_blog.getData()); }
+    public String getBlogStr() { 
+        if (_blog != null)
+            return Base64.encode(_blog.getData()); 
+        else
+            return null;
+    }
     public long getMostRecentEntry() { return _mostRecentEntry; }
     public Map getBlogGroups() { return _blogGroups; }
     public List getShitlistedBlogs() { return _shitlistedBlogs; }
diff --git a/apps/syndie/java/src/net/i2p/syndie/web/ImportFeedServlet.java b/apps/syndie/java/src/net/i2p/syndie/web/ImportFeedServlet.java
index f3342b56be..6acadfafec 100644
--- a/apps/syndie/java/src/net/i2p/syndie/web/ImportFeedServlet.java
+++ b/apps/syndie/java/src/net/i2p/syndie/web/ImportFeedServlet.java
@@ -33,6 +33,7 @@ public class ImportFeedServlet extends BaseServlet {
  
         if (!BlogManager.instance().authorizeRemote(user)) {
             out.write("<tr><td colspan=\"3\"><span class=\"b_rssMsgErr\">You are not authorized for remote access.</span></td></tr>\n");
+            return;
         } else {
             out.write("<tr><td colspan=\"3\">");
           
-- 
GitLab