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 |
Jump to:
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
| Attachment | Size |
|---|---|
| mediafield_displayNew.patch | 1.78 KB |

#1
This also worked for me -- thanks!