Skip to content

Commit 625c763

Browse files
author
Mike Kozicki
authored
Update social_meta_vars.inc to encode $pageUri
1 parent 5dcc6b7 commit 625c763

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

www/include/social_meta_vars.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_once __DIR__ . '/../common_lib.inc';
44
require_once __DIR__ . '/../common.inc';
55

6-
$pageURI = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
6+
$pageURI = urlencode('https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
77
// NOTE: if you'd like a page to include a screenshot for social sharing, specify $useScreenshot = true above the head include.
88
// Also, for page-specific screenshot css tweaks, add a screenshot class to that page's body class
99
$screenshotURI = CreateUrlVariation($pageURI, "screenshot=1");

0 commit comments

Comments
 (0)