[opencms-dev] Search Bug (also on opencms.org

Shi Yusen shiys at langhua.cn
Thu Oct 15 07:41:31 CEST 2009


If it's ok in firefox and wrong in ie, then it's a simple problem:
Add unescape to the query string when getting it
if (CmsStringUtil.isNotEmpty(query)) query = CmsEncoder.unescape(query,
cms.getRequestContext().getEncoding());

Add escape to the query string when setting it
query=<%= CmsEncoder.escape(query,
cms.getRequestContext().getEncoding()) %>

Good luck,

Shi Yusen/Beijing Langhua Ltd.


在 2009-10-14三的 15:00 -0400,list写道:
> I was wondering if anyone had an ideas about this?  Any suggestions
> would be appreciated.
> 
>  
> 
> From:opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of list
> Sent: Friday, September 25, 2009 3:31 PM
> To: 'The OpenCms mailing list'
> Subject: [opencms-dev] Search Bug (also on opencms.org
> 
> 
>  
> 
> I found what may be a bug in the search.  I wasn’t able to find it
> discussed about in the forum or through google. 
> 
>  
> 
> I noticed the bug on our site and on the opencms.org site.  If you
> search for a phrase in double quotes e.g. "alkacon software"  you get
> multiple pages of results but when clicking on the second or any other
> page it says no results. 
> 
>  
> 
> On our site it doesn’t say no results on the second page but gives the
> following error:
> 
>  
> 
> javax.servlet.jsp.JspException: javax.servlet.ServletException: VFS
> target resource
> "/system/modules/org.opencms.frontend.templateone/pages/search.html"
> was already included earlier.
> Reason: VFS target resource
> "/system/modules/org.opencms.frontend.templateone/pages/search.html"
> was already included earlier. 
> 
>  
> 
> If you have any suggestions, or if I missed someplace where this is
> discussed please let me know.
> 
>  
> 
> Thank you
> 
>  
> 
>  
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list