From 3cf14c5dc62597c3653bb6bcf96eee73f8d5e25a Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Tue, 21 Dec 2010 11:19:21 +0000 Subject: [PATCH] Fix: problem with css files --- htdocs/lib/functions.lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index f8b4fa8894f..fdaf2549a42 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -118,7 +118,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); + preg_match('/^([^.]+(\.css)?\.php)/i',$path,$regs); if (! empty($regs[1])) $filepath = $regs[1]; // An alternative for proxy but extremely slow //$url = 'http://'.$_SERVER["SERVER_NAME"].DOL_URL_ROOT.$path; -- GitLab