Changeset 42164 in spip-zone


Ignore:
Timestamp:
Nov 8, 2010, 10:53:53 AM (10 years ago)
Author:
fil@…
Message:

bug dans sql_quote

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _contribs_/_importer_/memo/memo.php

    r18196 r42164  
    2626        include_spip('inc/presentation');
    2727        include_spip('inc/minipres');
     28        include_spip('base/abstract_sql');
    2829        include_spip('inc/vieilles_defs');
    2930        verifier_visiteur();
     
    218219
    219220unset($id_article);
    220 $query="SELECT id_article,statut FROM spip_articles WHERE $v_url_site='".sql_quote_x($url)."' AND statut!='poubelle'";
     221$query="SELECT id_article,statut FROM spip_articles WHERE $v_url_site=".sql_quote_x($url)." AND statut!='poubelle'";
    221222$result=spip_query($query);
    222223if ($row = spip_fetch_array($result)) $id_article=$row['id_article'];
     
    231232        $forums_publics = substr(lire_meta('forums_publics'),0,3);
    232233        if (function_exists('sql_insert')) {
     234
    233235                $id_article = sql_insert('spip_articles',
    234236                        '(id_rubrique, titre, statut, date, accepter_forum, lang)',
Note: See TracChangeset for help on using the changeset viewer.