Changeset 61297 in spip-zone


Ignore:
Timestamp:
May 15, 2012, 9:38:14 AM (7 years ago)
Author:
denisb@…
Message:

inc/joindre_document : attention à posix qui lit . xxx .?

Location:
_plugins_/mediatheque
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/mediatheque/inc/joindre_document.php

    r49558 r61297  
    285285        $extension = '';
    286286        $name = $doc['name'];
    287         if (preg_match(',[.]([^.]+)$,', $name, $r)
     287        if (preg_match(',\.([^.]+)$,', $name, $r)
    288288         AND $t = sql_fetsel("extension", "spip_types_documents",       "extension=" . sql_quote(corriger_extension($r[1])))
    289289         ) {
    290290                $extension = $t['extension'];
    291                 $name = preg_replace(',[.][^.]*$,', '', $doc['name']).'.'.$extension;
     291                $name = preg_replace(',\.[^.]*$,', '', $doc['name']).'.'.$extension;
    292292        }
    293293        else if ($t = sql_fetsel("extension", "spip_types_documents",   "mime_type=" . sql_quote($doc['type']))) {
    294294                $extension = $t['extension'];
    295                 $name = preg_replace(',[.][^.]*$,', '', $doc['name']).'.'.$extension;
     295                $name = preg_replace(',\.[^.]*$,', '', $doc['name']).'.'.$extension;
    296296        }
    297297
  • _plugins_/mediatheque/plugin.xml

    r60254 r61297  
    1919        </slogan>
    2020        <auteur>[Cedric MORIN->http://www.yterium.net], [romy.tetue.net->http://romy.tetue.net], superyms--(traduction)</auteur>
    21         <version>1.6.12</version>
     21        <version>1.6.13</version>
    2222        <version_base>0.12</version_base>
    2323        <etat>stable</etat>
Note: See TracChangeset for help on using the changeset viewer.