Project:Fast Gallery
Version:6.x-3.3-beta1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

The thumbnails of images and galleries are working but the link to the full sized image is broken:

http://https%3A/%252Fmydomain/path/image.jpg

Comments

#1

btw... awesome module! exactly what we needed... thanks!

#2

Status:active» needs review

A possible fix >>

Here the original code which seems to be the problem:
fast_gallery.module, line 489

  else {
    $img_path = str_replace('http://', '', urldecode($img_path));
    $img_path = 'http://'.drupal_urlencode($img_path);
  }

This is my quick and dirty solution:
fast_gallery.module, line 489

  else {
    if ( preg_match('/^https/', $img_path) ) {
      $protocol = 'https://';
    }
    else {
      $protocol = 'http://';
    }

    $img_path = str_replace($protocol, '', urldecode($img_path));
    $img_path = $protocol.drupal_urlencode($img_path);
  }

#3

Status:needs review» fixed

#4

Status:fixed» closed (fixed)

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

nobody click here