mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Fix: use all character
This commit is contained in:
@@ -117,7 +117,7 @@ function dol_buildpath($path,$mode=0)
|
||||
// FIXME Trying to know if a file on disk exist by forging path on disk from url
|
||||
// works only for some web server and some setup. This is bugged when
|
||||
// using proxy, rewriting, virtual path, etc...
|
||||
preg_match('/^([^<]+\.php)$/i',$path,$regs); // Why a "<" char ?
|
||||
preg_match('/^([.*]+\.php)$/i',$path,$regs);
|
||||
if (! empty($regs[1])) $path = $regs[1];
|
||||
if (! file_exists(DOL_DOCUMENT_ROOT.$path)) $res = DOL_URL_ROOT_ALT.$path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user