roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Johnson (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (ROL-1911) HTML comment subset enabled, but comments are escaped
Date Sun, 06 Mar 2011 19:07:59 GMT

     [ https://issues.apache.org/jira/browse/ROL-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

David Johnson resolved ROL-1911.
--------------------------------

    Resolution: Fixed

URL: http://svn.apache.org/viewvc?rev=1078520&view=rev
Log:
Fix for ROL-1912, editing a comment should not update its posttime

Modified:
   roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java

Modified: roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java?rev=1078520&r1=1078519&r2=1078520&view=diff
==============================================================================
--- roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
(original)
+++ roller/trunk/weblogger-web/src/main/java/org/apache/roller/weblogger/ui/struts2/ajax/CommentDataServlet.java
Sun Mar  6 17:31:44 2011
@@ -105,6 +105,8 @@ public class CommentDataServlet extends
                if (weblog.hasUserPermission(rses.getAuthenticatedUser(), WeblogPermission.POST))
{
                    String content = Utilities.streamToString(request.getInputStream());
                    c.setContent(content);
+                    // don't update the posttime when updating the comment
+                    c.setPostTime(c.getPostTime());
                    wmgr.saveComment(c);
                    roller.flush();

> HTML comment subset enabled, but comments are escaped
> -----------------------------------------------------
>
>                 Key: ROL-1911
>                 URL: https://issues.apache.org/jira/browse/ROL-1911
>             Project: Roller
>          Issue Type: Bug
>          Components: Comments
>            Reporter: David Johnson
>            Assignee: David Johnson
>             Fix For: 5.0
>
>
> See also: http://rollerweblogger.org/roller/entry/tri_xml_2006_presentation

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message