diff --git a/e107_files/bbcode/flash.bb b/e107_files/bbcode/flash.bb index af124a994..c879f99b7 100644 --- a/e107_files/bbcode/flash.bb +++ b/e107_files/bbcode/flash.bb @@ -1,6 +1,6 @@ // USAGE: [flash=width,height]http://www.example.com/file.swf[/flash] -$movie_path = "http://".eregi_replace("http://", "",$code_text); +$movie_path = (substr($code_text,0,4) == "http") ? "http://".eregi_replace("http://", "",$code_text) : $code_text; $movie_path = $tp -> toAttribute($movie_path); $parm_array = explode(",",$parm); @@ -18,4 +18,5 @@ return " - "; \ No newline at end of file + "; +