[buddypress-trac] [BuddyPress Trac] #5694: Issue with the ampersand character in members search

buddypress-trac noreply at wordpress.org
Wed Aug 6 20:41:53 UTC 2014


#5694: Issue with the ampersand character in members search
----------------------------------------+------------------
 Reporter:  dontdream                   |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  2.1
Component:  Members                     |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-unit-tests has-patch  |
----------------------------------------+------------------

Comment (by imath):

 OOps i made a confusion with another ticket, this one is about the member
 search issue with '&'. Sorry. Well the problem also exist in activity
 search ;)

 Anyway, after looking at it. The member search is a bit more complex as in
 {{{bp_legacy_theme_ajax_querystring()}}} a querystring is built from the
 posted data. And the problem is that when a search is containing '&', it's
 parsed like if there were a new query var.

 For instance (if javascript is enabled) searching for '&mp' will generate
 a query string like this :
 {{{type=alphabetical&action=alphabetical&page=1&search_terms=&mp}}}
 Then once parsed in bp_has_members(), the search terms argument is empty
 and there is a new 'mp' var

 So i suggest  5694.03.patch to try to fix this issue.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5694#comment:7>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list