roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From snoopd...@apache.org
Subject svn commit: r985690 - /roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java
Date Sun, 15 Aug 2010 15:30:27 GMT
Author: snoopdave
Date: Sun Aug 15 15:30:26 2010
New Revision: 985690

URL: http://svn.apache.org/viewvc?rev=985690&view=rev
Log:
Avoid "illegal mix of collations" exceptions in referrer processing

Modified:
    roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java

Modified: roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java
URL: http://svn.apache.org/viewvc/roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java?rev=985690&r1=985689&r2=985690&view=diff
==============================================================================
--- roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java
(original)
+++ roller/trunk/weblogger-business/src/main/java/org/apache/roller/weblogger/business/jpa/JPARefererManagerImpl.java
Sun Aug 15 15:30:26 2010
@@ -382,6 +382,8 @@ public class JPARefererManagerImpl imple
 
             // now lookup weblog entry if possible
             if (entryAnchor != null) {
+                // sanitize the anchor to avoid "Illegal mix of collations"
+                entryAnchor = Utilities.replaceNonAlphanumeric(entryAnchor, ' ').trim();
                 entry = roller.getWeblogEntryManager().getWeblogEntryByAnchor(weblog, entryAnchor);
             }
         } catch (WebloggerException re) {



Mime
View raw message