Date: Mon, 1 Feb 2021 15:07:55 +0000 (UTC) From: Dima Panov <fluffy@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r563583 - in branches/2021Q1/www/phpvirtualbox: . files Message-ID: <202102011507.111F7tNf049244@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: fluffy Date: Mon Feb 1 15:07:54 2021 New Revision: 563583 URL: https://svnweb.freebsd.org/changeset/ports/563583 Log: MFH: r563582 www/phpvirtualbox: Set default cookie expiry date to 7 days after creation Fix the issue "unable to switch servers" A few weeks ago phpVirtualBox started preventing users to switch from one server to another, as you can read in this upstream bug report: https://github.com/phpvirtualbox/phpvirtualbox/issues/267 PR: 253155 Submitted by: andrew.hotlab With hat: ports-secteam Obtained from: phpvirtualbox repo Added: branches/2021Q1/www/phpvirtualbox/files/patch-js_utils.js - copied unchanged from r563582, head/www/phpvirtualbox/files/patch-js_utils.js Modified: branches/2021Q1/www/phpvirtualbox/Makefile Directory Properties: branches/2021Q1/ (props changed) Modified: branches/2021Q1/www/phpvirtualbox/Makefile ============================================================================== --- branches/2021Q1/www/phpvirtualbox/Makefile Mon Feb 1 15:06:38 2021 (r563582) +++ branches/2021Q1/www/phpvirtualbox/Makefile Mon Feb 1 15:07:54 2021 (r563583) @@ -3,6 +3,7 @@ PORTNAME= phpvirtualbox DISTVERSION= 5.2-1 +PORTREVISION= 1 CATEGORIES= www MAINTAINER= vbox@FreeBSD.org Copied: branches/2021Q1/www/phpvirtualbox/files/patch-js_utils.js (from r563582, head/www/phpvirtualbox/files/patch-js_utils.js) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2021Q1/www/phpvirtualbox/files/patch-js_utils.js Mon Feb 1 15:07:54 2021 (r563583, copy of r563582, head/www/phpvirtualbox/files/patch-js_utils.js) @@ -0,0 +1,11 @@ +--- js/utils.js.orig 2018-11-09 09:43:10 UTC ++++ js/utils.js +@@ -1112,7 +1112,7 @@ function phpVirtualBoxFailure(msg) { + * @param {Date} expire - when cookie should expire + */ + function vboxSetCookie(k,v,expire) { +- var exp = (v ? (expire ? expire : new Date(2020,12,24)) : new Date().setDate(new Date().getDate() - 1)); ++ var exp = (v ? (expire ? expire : new Date(Date.now() + 7 * 1000 * 60 * 60 * 24)) : new Date().setDate(new Date().getDate() - 1)); + document.cookie = k+"="+v+"; expires="+exp.toGMTString()+"; path=/"; + $('#vboxPane').data('vboxCookies')[k] = v; + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202102011507.111F7tNf049244>