I don't see the issue either
If I don't use the scrambling it gives this path ./ images/my.mp3 and
it play's properly
Like I said it's only a problem in firefox
Here I have the srambling function in php
<?
function encodeString ($originalString, $mode) {
$encodedString = "";
$nowCodeString = "";
$randomNumber = -1;
$originalLength = strlen($originalString);
$encodeMode = $mode;
for ( $i = 0; $i < $originalLength; $i++) {
if ($mode == 3) $encodeMode = rand(1,2);
switch ($encodeMode) {
case 1: // Decimal code
$nowCodeString = "&#" .
ord($originalString[$i]) . ";";
break;
case 2: // Hexadecimal code
$nowCodeString = "&#x" .
dechex(ord($originalString[$i])) . ";";
break;
default:
return "ERROR: wrong encoding
mode.";
}
$encodedString .= $nowCodeString;
}
return $encodedString;
}
function obfuscateEMail($email, $naam, $mode) {
$obfuscatedEMail = encodeString($email,$mode);
return "<a href=
\"mailto:".$obfuscatedEMail."\">".
$naam."</a>";
//return "<a href=\"mailto:".$obfuscatedEMail."\">".
$naam."</a>";
}
function obfuscateURL($urllink, $mode) {
$obfuscatedURL = encodeString($urllink,$mode);
return $obfuscatedURL;
}
?>
> Is this a bug ?- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -