Dotclear

Changeset 1687:1b2c41ca89a1


Ignore:
Timestamp:
09/01/13 19:31:49 (11 years ago)
Author:
Florent Cotton <florent.cotton@…>
Branch:
default
Message:

Réception des pingbacks : ajout de quelques vérifications en amont, avant de charger toute la mécanique de traitement (cf. #1629).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.xmlrpc.php

    r1674 r1687  
    16441644               throw new Exception(__('No valid source URL provided? Try again!'), 0); 
    16451645          } 
    1646            
     1646 
     1647          if (!(filter_var($to_url, FILTER_VALIDATE_URL) && preg_match('!^https?://!',$to_url))) { 
     1648               throw new Exception(__('No valid target URL provided? Try again!'), 0); 
     1649          } 
     1650           
     1651          $from_url = html::sanitizeURL(urldecode($from_url)); 
     1652          $to_url = html::sanitizeURL(urldecode($to_url)); 
     1653          if ($from_url == $to_url) { 
     1654               throw new Exception(__('LOL!'), 0); 
     1655          } 
     1656           
     1657          # Time to get things done... 
    16471658          $this->setBlog(true); 
    16481659          $tb = new dcTrackback($this->core); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map