Audio player isn't given the correct url under https

vivianspencer - November 7, 2008 - 12:44
Project:Mediafield Display
Version:5.x-1.0
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

There was a fix applied to format encoded urls correctly but the fix doesn't work under https:

<?php
$flashvars
= str_replace('http%3A/%252F', 'http://', $flashvars);
?>

changed to:

<?php
if (stristr($flashvars, 'http%3A')) {
 
$flashvars = str_replace('http%3A/%252F', 'http://', $flashvars);
} elseif (
stristr($flashvars, 'https%3A')) {
 
$flashvars = str_replace('https%3A/%252F', 'https://', $flashvars);
}
?>

I tested it and it works for the button and 1 Pixel Out players

AttachmentSize
mediafield_displayNew.patch1.78 KB

#1

jct - February 23, 2009 - 16:31

This also worked for me -- thanks!

 
 

Drupal is a registered trademark of Dries Buytaert.