Commit Graph

1829 Commits (965d97b51b015020aeeb779dd7b741243c84c552)

Author SHA1 Message Date
Ivan Tcholakov 1c5c1f3c8f [svn r21432] FS#306 - Adding the Microsoft's alias CP65001 within the function api_get_file_system_encoding() to be recognized as UTF-8. 17 years ago
Ivan Tcholakov 83bef50300 [svn r21415] FS#306 - Removing previously introduced functions api_is_apache and api_is_iis(), they wont be needed. Introducing new functions in the multi-byte string library: api_initialize_internal_encoding($encoding), api_is_latin1_compatible(), api_get_latin1_compatible_languages(). Minor corrections for api_in_array_nocase() and api_refine_language_id(). Corrections in some comments. 17 years ago
Ivan Tcholakov 348c4b1928 [svn r21413] FS#306 - The installation script has logic for guessing/choosing the encoding of its pages, which is Apache-specific. For improvement/upgrading this logic and for other web-server specific needs, two functions have been added in the main API for web-server detection - api_is_apache() and api_is_iis(). The detection condition have been taken from WordPress 2.8, http://wordpress.org, GNU/GPL 2. 17 years ago
Ivan Tcholakov 45a564b5e5 [svn r21412] FS#306 - File uploader: Fixing the function add_ext_on_mime() properly to detect file extension presense on non-ASCII encoded file name. This, this function will not duplicate sometimes the file extension in its result. 17 years ago
Ivan Tcholakov ff618015cb [svn r21411] FS#306 - The global initialization script: Commenting a duplicate code for initialization of the global variable $charset, to be removed. Offtopic: A minor correction within the table that serves the function add_ext_on_mime() - for 'text/html' MIME type the '.html' extension will be assigned instead of '.htm'. 17 years ago
Ivan Tcholakov cb7dfe777b [svn r21406] FS#306 - Modification of the function replace_dangerous_char(). For Latin 1 platforms (ISO-8859-15, ISO-8859-1, WINDOWS-1252, ...) its behaviour has been preserved. For other platforms (including UTF-8) safe ASCII file names are generated through using transliteration. 17 years ago
Ivan Tcholakov f943595f2a [svn r21405] FS#306 - The multi-byte string library: Adding the function api_is_latin1($encoding) for detection aliases of the Latin 1 character set - ISO-8859-15, ISO-8859-1, WINDOWS-1252, CP1252, ... . Typically this function will be needed for code that provides backward compatibility for Latin 1 Dokeos sites. 17 years ago
Ivan Tcholakov 511972892f [svn r21394] FS#306 - The multi-byte string library: Corrections in the comments about the transliteration function. Renaming a variable according to our rules. 17 years ago
Ivan Tcholakov 5ff36ef2ef [svn r21392] FS#306 - The multi-byte string library: Adding a function that performs transliteration from UTF-8 to ASCII. Adding also a required database with character replacements. The solution has been adapted from the source code of the Drupal's module "Transliteration", version 6.x-2.1, 09-JUN-2009. 17 years ago
Ivan Tcholakov 2b4e07706d [svn r21389] FS#306 - Adding a boolen parameter $purified to the function api_get_interface_language(). For example, when $purified is true, the function will return 'french' onstead of 'french_unicode'. In certain cases we need such purified or refined language identificators. 17 years ago
Arthur Portugal 2466201750 [svn r21385] Minor - Added documentation 17 years ago
Ricardo Rodriguez 2a028f06bb [svn r21384] Minor - add documentation to functions display_rating and display_rating_form 17 years ago
Ivan Tcholakov 7fcede25e5 [svn r21382] FS#306 - The multi-byte string library: Making the function api_is_valid_utf8() unaffected by the PHP ini-setting mbstring.func_overload. 17 years ago
Arthur Portugal 575563e5e3 [svn r21378] Minor - Added documentation 17 years ago
Ivan Tcholakov ba204fa167 [svn r21360] FS#306 - Cancellation of the new file system API, cleaning the file system library. There is no rational reason to go this way, too much work is needed. 17 years ago
Arthur Portugal 65ba1076e3 [svn r21358] Validated the function "resize_picture" if exist the library image with help SimpleTest. 17 years ago
Arthur Portugal 59fae4d6d7 [svn r21357] Minor - Added documentation 17 years ago
Arthur Portugal 7dbe707ccd [svn r21353] Minor - Added documentation in some functions 17 years ago
Noël Dieschburg 63a61ef5c2 [svn r21315] Setting the tempdir to $garbageRpositorySys. Without this it doesn't work in document/downloadfolder.inc.php 17 years ago
Juan Carlos Raña 1612e47200 [svn r21275] Wiki -improve the cleanliness of the code is inserted. Where many users tend to modify pages, there are some unwanted tags 17 years ago
Ivan Tcholakov 6cf51a738c [svn r21274] FS#306 - The multi-byte string library: Adding a function that calculates correctly length of binary data (as number of bytes) regardless the PHP configuration (See the ini-setting mbstring.func_overload). This function may be upgraded for PHP6 in the future. 17 years ago
Ivan Tcholakov 2346de5a39 [svn r21273] FS#306 - A minor addition as comment - a reference link has been added inside the file system API. 17 years ago
Ivan Tcholakov aafc3e4b11 [svn r21272] FS#306 - Introducing more function in the file system API. 17 years ago
Ivan Tcholakov 84b00a8c7c [svn r21254] FS#306 - Adding the functions api_is_dir() and api_is_system_path() within the new low-level API to the file system. A minor fix for the function api_url_to_local_path() within the main API. 17 years ago
Arthur Portugal 650cb1810e [svn r21250] The corresponding database doesn't exist anymore (by yannoo) 17 years ago
Ivan Tcholakov 1726ed6060 [svn r21249] FS#306 - Introducing a new library that will re-implement some PHP file system related functions. These replacement functions will deal with the diffenrent encodings that are used by the Dokeos platform and the server's file system. 17 years ago
Ivan Tcholakov 3efbdbf6e8 [svn r21246] FS#306 - Introducing two conversion functions: api_file_system_encode() and api_file_system_decode(). 17 years ago
Ivan Tcholakov 7097eb634b [svn r21217] FS#306 - Introducing a new function api_get_file_system_encoding(). Guessing file system encoding is tricky, some corrections in this function are possible. 17 years ago
Ricardo Rodriguez 2edd380a92 [svn r21216] Added - return false; }else{ return true; in function api_block_anonymous_users() 17 years ago
Cristian Fasanando e858bbfc12 [svn r21167] remove doble quotes when generate course code - partial FS#4269 17 years ago
Yannick Warnier c246bbb6b8 [svn r21151] Fix issue with SCORM score in various alternative reporting interfaces 17 years ago
Yannick Warnier 4f30bee246 [svn r21150] New set of filters (supposedly sent with SVN#21147) 17 years ago
Yannick Warnier bff98b6f47 [svn r21148] Changed private method to public method to avoid HTMLPurifier sending fatal errors (see FS#4262) - suggested by Ivan Tcholakov 17 years ago
Yannick Warnier 3d217c0dc4 [svn r21144] Minor - added comments 17 years ago
Yannick Warnier 08088afee8 [svn r21143] Added Security::filter_filename() to avoid .php extensions (using disable_dangerous_file() function as a preliminary move to the Security lib) 17 years ago
Yannick Warnier 1d5ea061c4 [svn r21142] Do not show SQL error message when in production (part of security improvements FS#4261) 17 years ago
Yannick Warnier 91cc7a6c1d [svn r21141] Remove useless test files that increase risks of PHP vulnerabilities. Leaving changeLister.php as a blank file to override the previous security risk introduce by mistake. 17 years ago
Yannick Warnier 2977a114c1 [svn r21131] Added comment about default max score election. 17 years ago
Yannick Warnier ae38890216 [svn r21130] Removed error logging in hasty commit 17 years ago
Yannick Warnier 4b1a044c14 [svn r21129] Fixing score in SCORM results (see FS#4252) 17 years ago
Isaac Flores e7503e6c08 [svn r21123] logic changes - added function api_get_tools_list - (partial FS#4261) 17 years ago
Cristian Fasanando a44d43cda4 [svn r21121] Fixed vulnerable get parameter: search_folder - partial FS#4261 17 years ago
Cristian Fasanando f07d5e34c9 [svn r21118] Fixed vulnerable get parameter: base_url_alt - partial FS#4261 17 years ago
Cristian Fasanando 09c7b91945 [svn r21117] fixed vulnerable get parameter: img - partial FS#4261 17 years ago
Isaac Flores fa945c9dfc [svn r21110] logic changes - improvements in security in exercice tool - (partial FS#4261) 17 years ago
Cristian Fasanando 0e4227493e [svn r21105] Fixed vulnerable get parameter: action - partial FS#4261 17 years ago
Isaac Flores fcea118f6b [svn r21101] logic changes - improvements in security in agenda tool - (partial FS#4261) 17 years ago
Julio Montoya 5db18576b6 [svn r21100] Adding escape_strings 17 years ago
Julio Montoya be5c7e3391 [svn r21098] Cleaning example tests files see FS#4261 17 years ago
Julio Montoya 419fc5f1d0 [svn r21091] Security improvements FS#4261 17 years ago