items with space not working

Qwantum - August 13, 2009 - 12:48
Project:Lootz Item Filter
Version:6.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Qwantum
Status:closed
Description

Hello

I use the lastest official release: http://drupal.org/node/470460
and the patch for drupal_http_request: http://drupal.org/node/524832

The module is working, but items with one or more space not working correctly.

for example:
1.
[item]Titanguard[/item] in my page
search page with 3 matches in wowhead
fine working

2.
[item]45110[/item] in my page (this is exam 1 titanguard, but use ID)
fine working

3.
[item]Veteran Cloak[/item] in my page
1 match in wowhead
mousover popup not working
mouse over position link dont hold ID (....../?item=)
in my page appear: [Veteran Cloak]

4.
[item]4677[/item] in my page (this item is exam 3. veteran cloak)
mouseover poput fine working
mouse over position link correct
in my page appear [] not ID, and not name

Pls, help me what happening, and sorry my english is very elementary.

#1

Schultz7 - August 23, 2009 - 15:58
Status:active» fixed

Here is a fix for the issue you are encountering. The actual issue wasn't with spaces with items. It was with items that had only one result. Wowhead issued a 302 redirect for these items and how wowhead redirects drupal_http_request doesn't support. But drupal at least keeps the redirect url in the $page object to pull out the id for the item. Please try the attached patch with the drupal_http_request patch. I am updating the other patch with this fix included.

AttachmentSize
wowhead_fix_302.diff 662 bytes

#2

System Message - September 6, 2009 - 16:00
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.