Red Hat Bugzilla – Bug 816873
Colon (:) and semicolon (;) in search fields cause unexpected behaviour
Last modified: 2013-03-03 22:19:31 EST
Description of problem:
When entering : or ; in search fields, the search is cut short, and in some cases unexpected navigation behaviour is caused.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.Sign in and navigate to the project-wide search page of the editor
2.Enter "test; search" in the search field and press Enter
3.Enter "example;view:doc" in the search field and press Enter
2.Search text is replaced with "test" and a search results for "test" are returned (if any exist)
3.Page changes to another view
Search text is not cut off regardless which characters are entered. Navigation is never influenced by search text.
This was caused by lack of escaping of ; and : which are used to separate different bookmarkable components such as current view, current document and current search text in the URL.
These have now been properly escaped.
verified in Zanata version 1.6.0-alpha-3-SNAPSHOT (20120510-0019).