Embed video and flash not working
<p><e><x>mbed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" src="/upload/248308.swf" width="400" height="200" play="true" loop="true" menu="true">
<p> </p>
</x></e></p>
<object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/gKaIK6OAEhA&hl=en&fs=1&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/gKaIK6OAEhA&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object>
<p><o><x>bject width="425" height="344"><e><x>mbed src="http://www.youtube.com/v/gKaIK6OAEhA&hl=en&fs=1&rel=0" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></x></e></x></o></p>
Re: realestate
Re: Embed video and flash not working
Dear Developers
Do you ignore this problem?
Re: Embed video and flash not working
Re: Embed video and flash not working
I'm using asp pages.
Trying to add <object> tag with <param> inside. All is left after submiting is an empty embed.
How can I disable the html filter?
Thanks
Re: Embed video and flash not working
http://board.tvebak.dk/
Re: Embed video and flash not working
Re: Embed video and flash not working
Re: Embed video and flash not working
i use phpmaker and the fckeditor makes me the same problem..what i want is to insert videos....
Thank you...
Re: Embed video and flash not working
have to delete the contents of the array $ra1 and $ra2 in order to remove the blockade.
in the folder of template in the file zip of phpmaker program, you can change the phpfn.php
example.
// now the only remaining whitespace attacks are \t, \n, and \r
$ra1 = Array('javascript', 'vbscript', 'expression', '<applet', '<meta', '<xml', '<blink', '<link', '<style', '<script', '<embed', '<object', '<iframe', '<frame', '<frameset', '<ilayer', '<layer', '<bgsound', '<title', '<base'); // less strict
$ra2 = Array('onabort', 'onactivate', 'onafterprint', 'onafterupdate', 'onbeforeactivate', 'onbeforecopy', 'onbeforecut', 'onbeforedeactivate', 'onbeforeeditfocus', 'onbeforepaste', 'onbeforeprint', 'onbeforeunload', 'onbeforeupdate', 'onblur', 'onbounce', 'oncellchange', 'onchange', 'onclick', 'oncontextmenu', 'oncontrolselect', 'oncopy', 'oncut', 'ondataavailable', 'ondatasetchanged', 'ondatasetcomplete', 'ondblclick', 'ondeactivate', 'ondrag', 'ondragend', 'ondragenter', 'ondragleave', 'ondragover', 'ondragstart', 'ondrop', 'onerror', 'onerrorupdate', 'onfilterchange', 'onfinish', 'onfocus', 'onfocusin', 'onfocusout', 'onhelp', 'onkeydown', 'onkeypress', 'onkeyup', 'onlayoutcomplete', 'onload', 'onlosecapture', 'onmousedown', 'onmouseenter', 'onmouseleave', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onmousewheel', 'onmove', 'onmoveend', 'onmovestart', 'onpaste', 'onpropertychange', 'onreadystatechange', 'onreset', 'onresize', 'onresizeend', 'onresizestart', 'onrowenter', 'onrowexit', 'onrowsdelete', 'onrowsinserted', 'onscroll', 'onselect', 'onselectionchange', 'onselectstart', 'onstart', 'onstop', 'onsubmit', 'onunload');
$ra = array_merge($ra1, $ra2);
$found = true; // keep replacing as long as the previous round replaced something
while ($found == true) {
$val_before = $val;
for ($i = 0; $i < sizeof($ra); $i++) {
$pattern = '/';
for ($j = 0; $j < strlen($ra[$i]); $j++) {
if ($j > 0) {
$pattern .= '(';
$pattern .= '(&#[x|X]0{0,8}([9][a][b]);?)?';
$pattern .= '|(�{0,8}([9][10][13]);?)?';
$pattern .= ')?';
}
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2); // add in <> to nerf the tag
$val = preg_replace($pattern, $replacement, $val); // filter out the hex tags
if ($val_before == $val) {
// no replacements were made, so exit the loop
$found = false;
}
}
}
return $val;
}
--------------------------------------------------------------------------------------------------
// now the only remaining whitespace attacks are \t, \n, and \r
$ra1 = Array(); // -----------------------------------------------------------------------Ok
$ra2 = Array(); // -------------------------------------------------------------------------- OK
$ra = array_merge($ra1, $ra2);
$found = true; // keep replacing as long as the previous round replaced something
while ($found == true) {
$val_before = $val;
for ($i = 0; $i < sizeof($ra); $i++) {
$pattern = '/';
for ($j = 0; $j < strlen($ra[$i]); $j++) {
if ($j > 0) {
$pattern .= '(';
$pattern .= '(&#[x|X]0{0,8}([9][a][b]);?)?';
$pattern .= '|(�{0,8}([9][10][13]);?)?';
$pattern .= ')?';
}
$pattern .= $ra[$i][$j];
}
$pattern .= '/i';
$replacement = substr($ra[$i], 0, 2).'<x>'.substr($ra[$i], 2); // add in <> to nerf the tag
$val = preg_replace($pattern, $replacement, $val); // filter out the hex tags
if ($val_before == $val) {
// no replacements were made, so exit the loop
$found = false;
}
}
}
return $val;
}
Re: Embed video and flash not working
Re: Embed video and flash not working
could
Re: Embed video and flash not working
viewtopic.php?f=6&t=14477
Re: Embed video and flash not working
I tried adding your 2 lines but now the app just hangs when i try to update the record.
@danielqd
You sure that was the only 2 lines to enter? Would be lines 3347 and 3348.
Having the same <o<x>bject> problem in PHPMAKER.
Re: Embed video and flash not working
On line 3792 in your PHPFN template, remove the <object and <embed references in the $ra1 array. Search for the text "$ra1 = Array"
Fixed done.