Duplicate slashes in filenames have been removed.

skala
Ivan Tcholakov 15 years ago
parent e60b9b6a31
commit 7e40ec0aac
  1. 2
      main/admin/session_export.php
  2. 2
      main/dropbox/dropbox_download.php
  3. 2
      main/dropbox/dropbox_functions.inc.php
  4. 2
      main/forum/index.php
  5. 6
      main/inc/lib/fckeditor/repository.php
  6. 2
      main/inc/lib/search/get_terms.php
  7. 4
      main/inc/lib/search/search_widget.php
  8. 2
      main/inc/lib/search/xapian/XapianQuery.php
  9. 2
      main/social/group_add.php
  10. 4
      tests/main/inc/lib/fileUpload.lib.test.php
  11. 2
      tests/main/newscorm/scorm.lib.test.php
  12. 2
      tests/main/scorm/scorm.lib.test.php

@ -37,7 +37,7 @@ include '../inc/global.inc.php';
$this_section = SECTION_PLATFORM_ADMIN;
api_protect_admin_script(true);
include api_get_path(LIBRARY_PATH).'/fileManage.lib.php';
include api_get_path(LIBRARY_PATH).'fileManage.lib.php';
$session_id = intval($_GET['session_id']);
$formSent = 0;

@ -99,7 +99,7 @@ else {
$work = new Dropbox_work($_GET['id']);
$path = dropbox_cnf('sysPath') . '/' . $work -> filename; //path to file as stored on server
$file = $work->title;
require_once api_get_path(LIBRARY_PATH) . '/document.lib.php';
require_once api_get_path(LIBRARY_PATH).'document.lib.php';
$mimetype = DocumentManager::file_get_mime_type(true);
$fileparts = explode('.', $file);
$filepartscount = count($fileparts);

@ -1037,7 +1037,7 @@ function zip_download($array) {
$sys_course_path = api_get_path(SYS_COURSE_PATH);
// zip library for creation of the zipfile
require api_get_path(LIBRARY_PATH).'/pclzip/pclzip.lib.php';
require api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php';
// place to temporarily stash the zipfiles
$temp_zip_dir = api_get_path(SYS_COURSE_PATH).$_course['path'].'/temp/';

@ -51,7 +51,7 @@ $this_section=SECTION_COURSES;
api_protect_course_script(true);
// including additional library scripts
require_once api_get_path(LIBRARY_PATH).'/text.lib.php';
require_once api_get_path(LIBRARY_PATH).'text.lib.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
$nameTools=get_lang('Forums');

@ -19,14 +19,14 @@
* @since 31/December/2008
*/
require_once api_get_path(LIBRARY_PATH).'/fileUpload.lib.php';
require_once api_get_path(LIBRARY_PATH).'fileUpload.lib.php';
$permissions_for_new_directories = api_get_permissions_for_new_directories();
$permissions_for_new_files = api_get_permissions_for_new_files();
if (!empty($_course['path'])) {
require_once api_get_path(LIBRARY_PATH).'/document.lib.php';
require_once api_get_path(LIBRARY_PATH).'/groupmanager.lib.php';
require_once api_get_path(LIBRARY_PATH).'document.lib.php';
require_once api_get_path(LIBRARY_PATH).'groupmanager.lib.php';
// Get the Chamilo session properties. Before ajaximagemanager!!!
$to_group_id = !empty($_SESSION['_gid']) ? $_SESSION['_gid'] : 0 ;

@ -14,7 +14,7 @@ if (empty($_GET['term']) || empty($_GET['prefix']) || !in_array($_GET['operator'
}
require_once dirname(__FILE__) . '../../../global.inc.php';
require_once api_get_path(LIBRARY_PATH).'/search/DokeosQuery.php';
require_once api_get_path(LIBRARY_PATH).'search/DokeosQuery.php';
/**
* search with filter and build base array avoding repeated terms

@ -5,7 +5,7 @@
* @package dokeos.search
*/
require_once dirname(__FILE__) . '/IndexableChunk.class.php';
require_once api_get_path(LIBRARY_PATH).'/specific_fields_manager.lib.php';
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
//require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php');
/**
@ -293,7 +293,7 @@ function display_search_form($action, $show_thesaurus, $sf_terms, $op) {
*/
function search_widget_show($action='index.php') {
global $charset;
require_once api_get_path(LIBRARY_PATH).'/search/DokeosQuery.php';
require_once api_get_path(LIBRARY_PATH).'search/DokeosQuery.php';
// TODO: load images dinamically when they're avalaible from specific field ui to add
$icons_for_search_terms = array();

@ -3,7 +3,7 @@
require_once 'xapian.php';
require_once dirname(__FILE__) . '/../IndexableChunk.class.php';
//TODO: think another way without including specific fields here
require_once api_get_path(LIBRARY_PATH).'/specific_fields_manager.lib.php';
require_once api_get_path(LIBRARY_PATH).'specific_fields_manager.lib.php';
define('XAPIAN_DB', api_get_path(SYS_PATH).'searchdb/');

@ -8,7 +8,7 @@
$language_file= 'userInfo';
$cidReset=true;
require_once '../inc/global.inc.php';
require_once api_get_path(LIBRARY_PATH).'/formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php';
require_once api_get_path(LIBRARY_PATH).'social.lib.php';
require_once api_get_path(LIBRARY_PATH).'group_portal_manager.lib.php';

@ -1,7 +1,7 @@
<?php
require_once(api_get_path(LIBRARY_PATH).'fileUpload.lib.php');
require_once(api_get_path(LIBRARY_PATH).'document.lib.php');
require_once(api_get_path(LIBRARY_PATH).'/pclzip/pclzip.lib.php');
require_once(api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php');
class TestFileUpload extends UnitTestCase {
@ -302,7 +302,7 @@ class TestFileUpload extends UnitTestCase {
//unzipping
function testunzip_uploaded_document() {
//require_once(api_get_path(LIBRARY_PATH).'/pclzip/pclzip.lib.php');
//require_once(api_get_path(LIBRARY_PATH).'pclzip/pclzip.lib.php');
global $_course;
global $_user;
global $to_user_id;

@ -65,7 +65,7 @@ class TestScormLib extends UnitTestCase {
* @uses removescormDir() to actually remove the directory
*/
public function testscorm_delete() {
require_once(api_get_path(LIBRARY_PATH).'/fileManage.lib.php');
require_once(api_get_path(LIBRARY_PATH).'fileManage.lib.php');
$path_name = api_get_path(SYS_COURSE_PATH);
$file=$path_name.'scorm/';
$res=scorm_delete($file);

@ -60,7 +60,7 @@ class TestScorm extends UnitTestCase {
* @uses removescormDir() to actually remove the directory
*/
function testscorm_delete() {
require_once(api_get_path(LIBRARY_PATH).'/fileManage.lib.php');
require_once api_get_path(LIBRARY_PATH).'fileManage.lib.php';
$file='/tmp/';
$res=scorm_delete($file);
$this->assertTrue(is_bool($res));

Loading…
Cancel
Save