Skip to content

Commit 08bc466

Browse files
committed
check if privateinstall before setting cookie
1 parent 6851e69 commit 08bc466

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

www/common.inc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,12 @@ if (!isset($owner)) {
255255
}
256256
// Sanitize the owner string
257257
$owner = preg_replace('/[^a-zA-Z0-9]/', '', $owner);
258-
setcookie('o', $owner, time()+60*60*24*365, '/', 'webpagetest.org');
258+
if ($privateInstall) {
259+
setcookie('o', $owner, time()+60*60*24*365, '/');
260+
} else {
261+
setcookie('o', $owner, time()+60*60*24*365, '/', 'webpagetest.org');
262+
}
263+
259264

260265
// set their color selection as a cookie
261266
if (isset($_REQUEST['color'])) {

0 commit comments

Comments
 (0)