diff --git a/gpg-mailgate-web/public_html/include/pgp.php b/gpg-mailgate-web/public_html/include/pgp.php
index 13813ea..ad88e0b 100644
--- a/gpg-mailgate-web/public_html/include/pgp.php
+++ b/gpg-mailgate-web/public_html/include/pgp.php
@@ -71,6 +71,8 @@ function requestPGP($email, $key) {
//returns false on failure or true on success
function confirmPGP($email, $confirm) {
+ require_once(includePath() . "/lock.php");
+
if(!lockAction('confirmpgp')) {
return "try again later";
}