diff --git a/ecrire/base/connect_sql.php b/ecrire/base/connect_sql.php
index 71603159e979cc6ef2bba7ff8690825eab60eceb..62d63ff842f16c447fd873805b866a5edb1db30c 100644
--- a/ecrire/base/connect_sql.php
+++ b/ecrire/base/connect_sql.php
@@ -37,7 +37,7 @@ function spip_connect($serveur='', $version='') {
 
 	// Premiere connexion ? 
 	if (!($old = isset($connexions[$index]))) {
-		$f = (!preg_match('/^\w*$/', $serveur))	? ''
+		$f = (!preg_match('/^[\w\.]*$/', $serveur))	? ''
 		: (($serveur AND !$install) ?
 			( _DIR_CONNECT. $serveur . '.php')
 			: (_FILE_CONNECT ? _FILE_CONNECT