Protocol-relative URLs for open graph #546
This commit is contained in:
parent
2ce58d2821
commit
70cd7f8a47
@ -24,8 +24,8 @@ function getGraphHeader($photoID) {
|
|||||||
else $dir = 'big';
|
else $dir = 'big';
|
||||||
|
|
||||||
$parseUrl = parse_url('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
$parseUrl = parse_url('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
|
||||||
$url = $parseUrl['scheme'] . '://' . $parseUrl['host'] . $parseUrl['path'] . '?' . $parseUrl['query'];
|
$url = '//' . $parseUrl['host'] . $parseUrl['path'] . '?' . $parseUrl['query'];
|
||||||
$picture = $parseUrl['scheme'] . '://' . $parseUrl['host'] . $parseUrl['path'] . '/../uploads/' . $dir . '/' . $row->url;
|
$picture = '//' . $parseUrl['host'] . $parseUrl['path'] . '/../uploads/' . $dir . '/' . $row->url;
|
||||||
|
|
||||||
$url = htmlentities($url);
|
$url = htmlentities($url);
|
||||||
$picture = htmlentities($picture);
|
$picture = htmlentities($picture);
|
||||||
|
Loading…
Reference in New Issue
Block a user