[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / plugins-dist / urls_etendues / urls / propres.php
index e06f122..360b8f0 100644 (file)
@@ -3,7 +3,7 @@
 /***************************************************************************\
  *  SPIP, Systeme de publication pour l'internet                           *
  *                                                                         *
- *  Copyright (c) 2001-2014                                                *
+ *  Copyright (c) 2001-2016                                                *
  *  Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James  *
  *                                                                         *
  *  Ce programme est un logiciel libre distribue sous licence GNU/GPL.     *
@@ -382,7 +382,7 @@ function urls_propres_dist($i, $entite, $args='', $ancre='') {
                } else {
                        // Si ca ressemble a une URL d'objet, ce n'est pas la home
                        // et on provoque un 404
-                       if (preg_match(',^.*/[^\.]+(\.html)?$,', $url)) {
+                       if (preg_match(',^[^\.]+(\.html)?$,', $url)) {
                                $entite = '404';
                                $contexte['erreur'] = '';