Skip to content

Commit ba1e2c3

Browse files
author
Mike Kozicki
authored
Merge pull request #3007 from catchpoint/encode_url
Update social_meta_vars.inc to encode $pageUri
2 parents b737087 + 625c763 commit ba1e2c3

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)