ports/www/phpvirtualbox/files/patch-panes_mediumEncryptionPasswords.html
Bernhard Froehlich 4e72deff05 - Update to an unofficial 5.1-1 which supports VirtualBox 5.1
Sadly upstream is very silent and has not released a new version
which supports VirtualBox 5.1, supports PHP 7.1 or fixes bugs. In
the meantime the community has created patches which are
collected in the github projects bugtracker and pull requests.
This unofficial version cherry picks the useful stuff of it.

Highlights of unofficial phpvirtualbox 5.1-1:

* based on git commit 65ebced (latest commit from May 19, 2016)

* Patch to support Virtualbox 5.1
https://github.com/phpvirtualbox/phpvirtualbox/pull/22

* Fix argument count mismatches revealed by PHP 7.1
https://github.com/phpvirtualbox/phpvirtualbox/pull/24

* Make decryption of images/VMs work by not providing a password ID
https://github.com/phpvirtualbox/phpvirtualbox/pull/55

* Tried to make clearOnSuspend work
https://github.com/phpvirtualbox/phpvirtualbox/pull/57

PR:		ports/220171
Submitted By:	rozhuk.im
With hat:	vbox@ (kind of)
2017-07-27 15:21:31 +00:00

41 lines
1.7 KiB
HTML

--- panes/mediumEncryptionPasswords.html.orig 2017-07-27 16:54:58 UTC
+++ panes/mediumEncryptionPasswords.html
@@ -15,6 +15,7 @@
<th class='translate' style='width:1%; text-align:center'>Status</th>
<th class='translate' style='width:30%; text-align:center'>ID</th>
<th class='translate'>Password</th>
+ <th class='translate'>Clear on suspend</th>
</tr>
</thead>
<tbody id='vboxMediumEncryptionPasswordList'>
@@ -37,9 +38,12 @@ function vboxMediumEncryptionPasswordAdd
.append($('<td />')
.append(
valid ? '*****' :
- $('<input />').attr({'type':'password','style':'width:95%'}).addClass('vboxText')
+ $('<input />').attr({'type':'password','style':'width:90%'}).addClass('vboxText')
)
)
+ .append($('<td />')
+ .append($('<input />').attr({'type':'checkbox', 'checked':'checked'}))
+ )
.appendTo($('#vboxMediumEncryptionPasswordList'))
}
@@ -55,7 +59,8 @@ function vboxMediumEncryptionPasswordsGe
continue;
encryptionPWs.push({
'id': $(rowlist[i]).data('vboxEncryptionId'),
- 'password': $(rowlist[i]).find('input').first().val()
+ 'password': $(rowlist[i]).find('input[type="password"]').first().val(),
+ 'clearOnSuspend': $(rowlist[i]).find('input[type="checkbox"]').first().is(':checked') ? '1' : '0'
});
}
@@ -75,4 +80,4 @@ function vboxMediumEncryptionPasswordsVa
});
return valid;
}
-</script>
\ No newline at end of file
+</script>