json_web_service bug in relation search

Bug #1027349 reported by iPhoneIslam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Alfanous - Quranic Search engine
Opinion
Medium
Unassigned

Bug Description

When search with
http://www.alfanous.org/json?search=%D9%8A%D9%88%D8%B3%D9%81%20+%20%D9%85%D8%B5%D8%B1

It gives results not equals to...

http://www.alfanous.org/?search=%D9%85%D8%B5%D8%B1%20%2B%20%D9%8A%D9%88%D8%B3%D9%81

While both are search for...
مصر + يوسف

but it seem that you do not encode the PLUS sign with the json!

Changed in alfanous:
importance: Undecided → Medium
status: New → Opinion
Revision history for this message
Assem Chelli (عاصم شلي) (assem-ch) wrote :

those two queries are not the same because in the first one, you didnt encode the "plus" in the url so the browser will understand it as a concatenation : %D9%8A%D9%88%D8%B3%D9%81%20 + %20%D9%85%D8%B5%D8%B1 مصر يوسف

in the second query, the "plus" is encoded to "%2B"

That's the right writing to search for "مصر + يوسف" , http://www.alfanous.org/json?search=%D9%85%D8%B5%D8%B1%20%2B%20%D9%8A%D9%88%D8%B3%D9%81

try always to encode the special characters in the url

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.