forked from GNUsocial/gnu-social
escape slash in regexp
This commit is contained in:
parent
cd9a247980
commit
98f6bbb90c
@ -99,7 +99,7 @@ class LinkbackPlugin extends Plugin
|
|||||||
|
|
||||||
if (array_key_exists('X-Pingback', $result->headers)) {
|
if (array_key_exists('X-Pingback', $result->headers)) {
|
||||||
$pb = $result->headers['X-Pingback'];
|
$pb = $result->headers['X-Pingback'];
|
||||||
} else if (preg_match('/<link rel="pingback" href="([^"]+)" ?/?>/',
|
} else if (preg_match('/<link rel="pingback" href="([^"]+)" ?\/?>/',
|
||||||
$result->body,
|
$result->body,
|
||||||
$match)) {
|
$match)) {
|
||||||
$pb = $match[1];
|
$pb = $match[1];
|
||||||
|
Loading…
Reference in New Issue
Block a user