mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
* FIX: Fix unneeded access outside open_basedir when looking for modules
# FIX: Fix unneeded access outside open_basedir when looking for modules
Change the order in which the if conditions are tested so that an is_dir("dir/..") is avoided
by first testing if the subpath starts with a dot.
Also changed uppercased the first 3 letters of the file before comparing to CVS.
Finally, improved the typing hint and documentation.
The PHPUNIT test failed like this:
```
35) ExportTest::testExportModulesDatasets
is_dir(): open_basedir restriction in effect. File(D:\a\dolibarr\dolibarr\htdocs/..) is not within the allowed path(s): (D:\a\dolibarr\dolibarr\htdocs;D:\a\dolibarr\dolibarr\documents;D:\a\dolibarr\dolibarr\test;D:\a\dolibarr\dolibarr\dev\initdemo;c:\tools\php)
D:\a\dolibarr\dolibarr\htdocs\core\lib\functions2.lib.php:100
D:\a\dolibarr\dolibarr\htdocs\exports\class\export.class.php:119
D:\a\dolibarr\dolibarr\test\phpunit\ExportTest.php:463
```
* Fix spelling
|
||
|---|---|---|
| .. | ||
| ajax | ||
| boxes | ||
| class | ||
| data | ||
| db | ||
| filemanagerdol | ||
| js | ||
| lib | ||
| login | ||
| menus | ||
| modules | ||
| tpl | ||
| triggers | ||
| actions_addupdatedelete.inc.php | ||
| actions_builddoc.inc.php | ||
| actions_changeselectedfields.inc.php | ||
| actions_comments.inc.php | ||
| actions_dellink.inc.php | ||
| actions_extrafields.inc.php | ||
| actions_fetchobject.inc.php | ||
| actions_lineupdown.inc.php | ||
| actions_linkedfiles.inc.php | ||
| actions_massactions.inc.php | ||
| actions_printing.inc.php | ||
| actions_sendmails.inc.php | ||
| actions_setmoduleoptions.inc.php | ||
| actions_setnotes.inc.php | ||
| antispamimage.php | ||
| bookmarks_page.php | ||
| commonfieldsinexport.inc.php | ||
| commonfieldsinimport.inc.php | ||
| customreports.php | ||
| datepicker.php | ||
| doxygen.php | ||
| extrafieldsinexport.inc.php | ||
| extrafieldsinimport.inc.php | ||
| get_info.php | ||
| get_menudiv.php | ||
| multicompany_page.php | ||
| photos_resize.php | ||
| search_page.php | ||
| search.php | ||
| tools.php | ||
| website.inc.php | ||