From e6b7c16f0974de7d9e3e7dcf3b616bf6f6a2d568 Mon Sep 17 00:00:00 2001
From: Cerdic <cedric@yterium.com>
Date: Mon, 15 Jan 2007 20:30:46 +0000
Subject: [PATCH] "delimiteurs de la preg (, ne passe pas a cause du {3,7} )"

---
 ecrire/inc/filtres_images.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ecrire/inc/filtres_images.php b/ecrire/inc/filtres_images.php
index 2b274fa39e..aeaa7e697f 100644
--- a/ecrire/inc/filtres_images.php
+++ b/ecrire/inc/filtres_images.php
@@ -59,7 +59,7 @@ function image_valeurs_trans($img, $effet, $forcer_format = false) {
 	}
 	$fichier = $source;
 	// les protocoles web prennent au moins 3 lettres
-	if (preg_match(',^(\w{3,7}://),', $source)){
+	if (preg_match(';^(\w{3,7}://);', $source)){
 		include_spip("inc/distant");
 		$fichier = fichier_copie_locale($source);
 	}
-- 
GitLab