Dotclear


Ignore:
Timestamp:
07/01/11 17:31:34 (14 years ago)
Author:
Franck <carnet.franck.paul@…>
Branch:
default
Message:

Fonction de contrôle ré-écrite, fixes #1209

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/admin/prepend.php

    r468 r469  
    2424function dc_valid_fav($url) { 
    2525     global $core; 
    26       
    27      $parts = parse_url($url); 
    28      if (isset($parts['path'])) { 
    29           if ($parts['path'] == 'plugin.php') { 
    30                if (isset($parts['query'])) { 
    31                     $parts = explode('&', $parts['query']); 
    32                     $param = explode('=', $parts[0]); 
    33                     if (($param[0] == 'p') && (isset($param[1]))) { 
    34                          if (!$core->plugins->moduleExists($param[1])) { 
    35                               return false; 
    36                          } 
    37                     } 
     26 
     27     if (preg_match('#plugin\.php\?p=([^&]+)#',$url,$matches)) { 
     28          if (isset($matches[1])) { 
     29               if (!$core->plugins->moduleExists($matches[1])) { 
     30                    return false; 
    3831               } 
    3932          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map