jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ajaqu...@apache.org
Subject svn commit: r904790 - /incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java
Date Sat, 30 Jan 2010 15:26:45 GMT
Author: ajaquith
Date: Sat Jan 30 15:26:45 2010
New Revision: 904790

URL: http://svn.apache.org/viewvc?rev=904790&view=rev
Log:
Fixed bug in EditActionBean that prevented the author from being correctly set when the user
was already authenticated.

Modified:
    incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java

Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java?rev=904790&r1=904789&r2=904790&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/action/EditActionBean.java Sat Jan 30
15:26:45 2010
@@ -321,7 +321,7 @@
         Principal principal = wikiSession.getUserPrincipal();
         if ( wikiSession.isAuthenticated() )
         {
-            setAuthor( principal.getName() );
+            m_author = TextUtil.replaceEntities( principal.getName() );
         }
         else if( m_author == null )
         {



Mime
View raw message