Posted by deepstar on August 4, 2007 at 10:31pm
Jump to:
| Project: | Planet profile |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (won't fix) |
Issue Summary
Hi,
it seems that the Planet module handles relative URL's wrong.
Suppose I have a blogpost at http://www.host.com/node/1234 which contains images using the gallery module, for example http://www.host.com/index.php?q=gallery...
The image tag contains a relative URL to /index.php?q=gallery
Planet translates that relative link into http://www.host.com/node/1234/index.php?q=gallery in the function planet_convert_relative_urls()
This is wrong.
I added the following 2 lines at the beginning of that function to resolve the problem:
$parsed = parse_url($base_url);
$base_url = $parsed['scheme'] ."://". $parsed['host'];kind regards,
-- Steven Van Acker
Comments
#1
TODO: is this still the case for 6.x-1.3?
#2
This project is being abandoned by the maintainer (swe3tdave) in favor of a similar project that has many of the bugs in this module taken care of. Please try to udplanet module (http://drupal.org/project/udplanet) to see if this bug still exists. If it does please report it. This module is actively maintained and the Ubuntu-Drupal team that maintains it will make every effort to ensure the issue is resolved as quickly as possible.
Because this project is now abandoned, I and setting the Status to Won't Fix and removing anyone assigned to it.
Thanks,
MTecknology