projects
/
GitHub
/
WoltLab
/
WCF.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e26331e
)
Fix disallowed BBCodes if editing comments
author
Joshua Rüsweg
<josh@bastelstu.be>
Tue, 28 Nov 2017 21:21:15 +0000
(22:21 +0100)
committer
Joshua Rüsweg
<josh@bastelstu.be>
Tue, 28 Nov 2017 21:21:28 +0000
(22:21 +0100)
wcfsetup/install/files/lib/data/comment/CommentAction.class.php
patch
|
blob
|
blame
|
history
wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
patch
|
blob
|
blame
|
history
diff --git
a/wcfsetup/install/files/lib/data/comment/CommentAction.class.php
b/wcfsetup/install/files/lib/data/comment/CommentAction.class.php
index 7eeaa6d3099f4c2d91f3aa027a991f69b0872bb7..e4ebff444f6776e8ad74c429cc827ce6c5785419 100644
(file)
--- a/
wcfsetup/install/files/lib/data/comment/CommentAction.class.php
+++ b/
wcfsetup/install/files/lib/data/comment/CommentAction.class.php
@@
-771,6
+771,8
@@
class CommentAction extends AbstractDatabaseObjectAction implements IMessageInli
if (!$this->commentProcessor->canEditComment($this->comment->getDecoratedObject())) {
throw new PermissionDeniedException();
}
+
+ $this->setDisallowedBBCodes();
}
/**
diff --git
a/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
b/wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
index 9dff1affb9997bfc9d29695d5e9044266f6c051c..7e8835f0dbcd43daa6bd2d3af19129172c643d28 100644
(file)
--- a/
wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
+++ b/
wcfsetup/install/files/lib/data/comment/response/CommentResponseAction.class.php
@@
-236,6
+236,8
@@
class CommentResponseAction extends AbstractDatabaseObjectAction {
if (!$this->commentProcessor->canEditResponse($this->response->getDecoratedObject())) {
throw new PermissionDeniedException();
}
+
+ $this->setDisallowedBBCodes();
}
/**