Dotclear


Ignore:
File:
1 edited

Legend:

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

    r1674 r1688  
    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          if (html::sanitizeURL(urldecode($from_url)) == html::sanitizeURL(urldecode($to_url))) { 
     1652               throw new Exception(__('LOL!'), 0); 
     1653          } 
     1654           
     1655          # Time to get things done... 
    16471656          $this->setBlog(true); 
    16481657          $tb = new dcTrackback($this->core); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map