Skip to content
Snippets Groups Projects
Commit 36110da4 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: Warning: preg_match(): No ending delimiter '/' found

parent 666c62af
No related branches found
No related tags found
No related merge requests found
...@@ -92,7 +92,7 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do ...@@ -92,7 +92,7 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do
$path=$_SERVER["CONTEXT_PREFIX"]; // example '/dolibarr/' when using an apache alias. $path=$_SERVER["CONTEXT_PREFIX"]; // example '/dolibarr/' when using an apache alias.
if (! preg_match('/\/$/', $path)) $path.='/'; if (! preg_match('/\/$/', $path)) $path.='/';
} }
else if (preg_match('/index\.php', $_SERVER['PHP_SELF'])) else if (preg_match('/index\.php/', $_SERVER['PHP_SELF']))
{ {
// When we ask index.php, we MUST BE SURE that $path is '' at the end. This is required to make install process // When we ask index.php, we MUST BE SURE that $path is '' at the end. This is required to make install process
// when using apache alias like '/dolibarr/' that point to htdocs. // when using apache alias like '/dolibarr/' that point to htdocs.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment