diff --git a/main/document/create_document.php b/main/document/create_document.php index d5562c7040..9b2180bef6 100644 --- a/main/document/create_document.php +++ b/main/document/create_document.php @@ -1,5 +1,5 @@ validate()) // change the path of mp3 to absolute - $content = preg_replace("|(flashvars=\"file=)([\./]*)|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content); + $content = preg_replace("|(flashvars=\"file=)(\.+/)+|","$1".api_get_path(REL_COURSE_PATH).$_course['path'].'/document/',$content); fputs($fp, $content); diff --git a/main/document/edit_document.php b/main/document/edit_document.php index 92960a9f6b..c20ace7d89 100644 --- a/main/document/edit_document.php +++ b/main/document/edit_document.php @@ -1,4 +1,4 @@ -