Changeset 1687:1b2c41ca89a1
- Timestamp:
- 09/01/13 19:31:49 (11 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.xmlrpc.php
r1674 r1687 1644 1644 throw new Exception(__('No valid source URL provided? Try again!'), 0); 1645 1645 } 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... 1647 1658 $this->setBlog(true); 1648 1659 $tb = new dcTrackback($this->core);
Note: See TracChangeset
for help on using the changeset viewer.