Bugfix and code cleanup
authorAlexander Ebert <ebert@woltlab.com>
Sat, 29 Dec 2018 19:40:26 +0000 (20:40 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 29 Dec 2018 19:40:26 +0000 (20:40 +0100)
wcfsetup/install/files/lib/data/contact/option/ContactOptionAction.class.php
wcfsetup/install/files/lib/page/ContactAttachmentPage.class.php

index f445e3a52f4b901e8843bcb2bfb3b5ed3ac01d03..b61a541291954da23c4f7be266dc62fb18bec0f0 100644 (file)
@@ -119,7 +119,7 @@ class ContactOptionAction extends CustomOptionAction implements ISortableAction
                
                // add reply-to tag
                $email->setReplyTo(new Mailbox($this->parameters['email']));
-               $email->debugDump();
+               
                // send mail
                $email->send();
        }
index c788ed9902537618a474c05e252d57d5debc3458..738944481fe7bc6a85beb770f4029f33d644e0bd 100644 (file)
@@ -46,7 +46,7 @@ class ContactAttachmentPage extends AttachmentPage {
                AbstractPage::checkPermissions();
                
                if (!$this->attachment->canDownload()) {
-                       if (empty($this->accessKey) || !hash_equals($this->accessKey, $this->contactAttachment->accessKey)) {
+                       if (empty($this->accessKey) || !hash_equals($this->contactAttachment->accessKey, $this->accessKey)) {
                                throw new PermissionDeniedException();
                        }
                }