Ignore:
Timestamp:
Jun 3, 2011, 6:08:34 PM (13 years ago)
Author:
mistic100
Message:

some tests to avoid errors, css bug with IE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Front2Back/admin.php

    r11217 r11218  
    55load_language('plugin.lang', F2B_PATH);
    66$conf['Front2Back'] = explode(',', $conf['Front2Back']);
     7
     8if (!function_exists('stripslashes_deep'))
     9{
     10  function stripslashes_deep($value)
     11  {
     12    return is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value);
     13  }
     14}
    715
    816// Enregistrement de la configuration
     
    1725    $_POST['switch_mode'],
    1826    $_POST['transition'],
    19     serialize(str_replace(array('"',','), ' ', $_POST['link_name'])),
     27    serialize(stripslashes_deep(str_replace(array("'",'"',','), null, $_POST['link_name']))),
    2028  );
    2129     
Note: See TracChangeset for help on using the changeset viewer.