Skip Menu |

This queue is for tickets about the WWW-Wikipedia CPAN distribution.

Report information
The Basics
Id: 95869
Status: open
Priority: 0/
Queue: WWW-Wikipedia

People
Owner: Nobody in particular
Requestors: hheldenbrand [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: search method does not correctly handle strings with spaces
Date: Thu, 22 May 2014 11:23:49 -0400
To: bug-WWW-Wikipedia [...] rt.cpan.org
From: Hugh Heldenbrand <hheldenbrand [...] gmail.com>
I passed the string "Aminocaproic Acid" to the search method, and no result was returned, even though there is a wikipedia page for that term. I printed the $src variable within the search method and found that it was generating this set of parameters to Wikipedia's index.php: http://en.wikipedia.org/w/index.php?title=Aminocaproic%20Acid&action=raw This is the correct set of parameters to get that page: http://en.wikipedia.org/w/index.php?title=Aminocaproic_acid&action=raw
Hi, I am not the author nor the maintainer but just wanted to point out that the reason why no result was return when using the code. The URL as mentioned in ticket would be generated if the search string was "Aminocaproic Acid". https://en.wikipedia.org/w/index.php?title=Aminocaproic%20Acid&action=raw However it was compared against search string "Aminocaproic acid". If we change the search string to "Aminocaproic acid" then it would give expected result. https://en.wikipedia.org/w/index.php?title=Aminocaproic%20acid&action=raw Best Regards, Mohammad S Anwar