diff --git a/LifeBlogger.iws b/LifeBlogger.iws index 66c9b0e..db804ad 100644 --- a/LifeBlogger.iws +++ b/LifeBlogger.iws @@ -71,7 +71,7 @@ - - - - + + + + @@ -364,13 +364,13 @@ - + - + @@ -521,9 +521,18 @@ + + + + + + + + + - + @@ -532,23 +541,7 @@ - - - - - - - - - - - - - - - - - + @@ -557,7 +550,7 @@ - + @@ -569,31 +562,38 @@ - - - - - - - - - - + - + - + + + + + + + + + + + + + + + + + diff --git a/src/net/thauvin/lifeblogger/LifeBlogger.java b/src/net/thauvin/lifeblogger/LifeBlogger.java index c7b3141..639f225 100644 --- a/src/net/thauvin/lifeblogger/LifeBlogger.java +++ b/src/net/thauvin/lifeblogger/LifeBlogger.java @@ -542,7 +542,7 @@ public class LifeBlogger extends Thinlet setString(find(post, "password"), "text", new String(Base64.decode(_prefs.getProperty("blog-password", "")))); setString(find(post, "entry"), "text", "\""\n

via LifeBlogger

"); + "\">\r

via LifeBlogger

"); add(post); } catch (Exception e) diff --git a/src/net/thauvin/lifeblogger/LifePost.java b/src/net/thauvin/lifeblogger/LifePost.java index d7e49b2..83a843c 100644 --- a/src/net/thauvin/lifeblogger/LifePost.java +++ b/src/net/thauvin/lifeblogger/LifePost.java @@ -98,13 +98,13 @@ public class LifePost extends LifeAction final StringBuffer request = new StringBuffer("blogger.newPost0a6afffffffaffffffb8ffffff8569474cffffffc778500c03ffffffecffffff876116565a27283bffffffda56").append(_blogID) - .append("") - .append(getLogin()) - .append("") - .append(getPassword()) - .append("") - .append(textToXML(_blogEntry)) - .append("false"); + .append("") + .append(getLogin()) + .append("") + .append(getPassword()) + .append("") + .append(textToXML(_blogEntry)) + .append("false"); final URLConnection urlConn = url.openConnection(); urlConn.setDoInput(true); urlConn.setDoOutput(true); @@ -117,6 +117,8 @@ public class LifePost extends LifeAction dos.flush(); dos.close(); + System.out.println(request); + final LifeRPCResponse xmlrpc = new LifeRPCResponse(urlConn.getInputStream()); if (xmlrpc.isValidResponse()) @@ -157,38 +159,20 @@ public class LifePost extends LifeAction return ("<"); } - // Convert left bracket - else if (ch == '>') - { - return (">"); - } - // Convert ampersand else if (ch == '&') { return ("&"); } - // High-ASCII character - else if (ch >= 128) + // High/Low-ASCII character + else if (ch >= 128 || ch < 32) { c = (int) ch; return ("&#" + c + ';'); } - // Convert double quote - else if (ch == '"') - { - return ("""); - } - - // Convert single quote - else if (ch == '\'') - { - return ("'"); - } - // No conversion else { diff --git a/src/net/thauvin/lifeblogger/LifeRPCResponse.java b/src/net/thauvin/lifeblogger/LifeRPCResponse.java index de25b54..2059787 100644 --- a/src/net/thauvin/lifeblogger/LifeRPCResponse.java +++ b/src/net/thauvin/lifeblogger/LifeRPCResponse.java @@ -98,7 +98,14 @@ public class LifeRPCResponse extends Thinlet { final Object string = getDOMNode(value, "string", 0); - _response = getDOMText(string); + if (string == null) + { + _response = getDOMText(value); + } + else + { + _response = getDOMText(string); + } } else { diff --git a/src/net/thauvin/lifeblogger/ReleaseInfo.java b/src/net/thauvin/lifeblogger/ReleaseInfo.java index bf3ced4..fb1201f 100644 --- a/src/net/thauvin/lifeblogger/ReleaseInfo.java +++ b/src/net/thauvin/lifeblogger/ReleaseInfo.java @@ -1,5 +1,5 @@ /* Created by JReleaseInfo AntTask from Open Source Competence Group */ -/* Creation date Sat Jul 24 05:15:28 PDT 2004 */ +/* Creation date Sat Jul 24 07:57:19 PDT 2004 */ package net.thauvin.lifeblogger; import java.util.Date; @@ -12,21 +12,21 @@ import java.util.Date; public class ReleaseInfo { - /** buildDate (set during build process to 1090671328718L). */ - private static Date buildDate = new Date(1090671328718L); + /** buildDate (set during build process to 1090681039640L). */ + private static Date buildDate = new Date(1090681039640L); /** - * Get buildDate (set during build process to Sat Jul 24 05:15:28 PDT 2004). + * Get buildDate (set during build process to Sat Jul 24 07:57:19 PDT 2004). * @return Date buildDate */ public static final Date getBuildDate() { return buildDate; } /** - * Get buildNumber (set during build process to 107). + * Get buildNumber (set during build process to 110). * @return int buildNumber */ - public static final int getBuildNumber() { return 107; } + public static final int getBuildNumber() { return 110; } /** version (set during build process to "0.1.0"). */