From 38eecdaf482c71d77ab331d969b408305e478940 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Tue, 25 Sep 2007 11:16:00 +0200 Subject: [PATCH] [svn r13242] fix a bug when adding flv --- main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js b/main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js index 55add67685..40aa045a0a 100644 --- a/main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js +++ b/main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js @@ -94,8 +94,7 @@ function Ok() // check if it's a flv file tmp_url = GetE('txtUrl').value; - extension = tmp_url.substring(tmp_url.indexOf('.')+1); - + extension = tmp_url.substring(tmp_url.lastIndexOf('.')+1); if(extension == 'flv') flvplayer = true;