Changeset 1672:d92b8e8317d2
- Timestamp:
- 08/31/13 14:56:21 (10 years ago)
- Branch:
- pingbacks
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.trackback.php
r1671 r1672 366 366 for ($i = 0; $i<count($match); $i++) 367 367 { 368 if (preg_match('/href="( https?:\/\/[^"]+)"/ms', $match[$i][1], $matches)) {368 if (preg_match('/href="((https?:\/)?\/[^"]+)"/ms', $match[$i][1], $matches)) { 369 369 $res[$matches[1]] = 1; 370 370 } … … 378 378 for ($i = 0; $i<count($match); $i++) 379 379 { 380 if (preg_match('/cite="( https?:\/\/[^"]+)"/ms', $match[$i][2], $matches)) {380 if (preg_match('/cite="((https?:\/)?\/[^"]+)"/ms', $match[$i][2], $matches)) { 381 381 $res[$matches[1]] = 1; 382 382 } … … 389 389 private function getPingURL($url) 390 390 { 391 if (strpos($url,'/') === 0) { 392 $url = http::getHost().$url; 393 } 394 391 395 try 392 396 {
Note: See TracChangeset
for help on using the changeset viewer.