summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/phpvirtualbox/Makefile1
-rw-r--r--www/phpvirtualbox/files/patch-js_utils.js11
2 files changed, 12 insertions, 0 deletions
diff --git a/www/phpvirtualbox/Makefile b/www/phpvirtualbox/Makefile
index 25858b96450b..9dcef42b8562 100644
--- a/www/phpvirtualbox/Makefile
+++ b/www/phpvirtualbox/Makefile
@@ -3,6 +3,7 @@
PORTNAME= phpvirtualbox
DISTVERSION= 5.2-1
+PORTREVISION= 1
CATEGORIES= www
MAINTAINER= vbox@FreeBSD.org
diff --git a/www/phpvirtualbox/files/patch-js_utils.js b/www/phpvirtualbox/files/patch-js_utils.js
new file mode 100644
index 000000000000..27d0c04fbf45
--- /dev/null
+++ b/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;
+ }