Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14017426
D16442.id39547.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
806 B
Referenced Files
None
Subscribers
None
D16442.id39547.diff
View Options
diff --git a/src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php b/src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
--- a/src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
+++ b/src/infrastructure/daemon/bot/handler/PhabricatorBotObjectNameHandler.php
@@ -50,8 +50,14 @@
'(?:\b|$)'.
'@';
+ $regex = trim(
+ PhabricatorEnv::getEnvConfig('remarkup.ignored-object-names'));
+
if (preg_match_all($pattern, $message, $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) {
+ if ($regex && preg_match($regex, $match[0])) {
+ continue;
+ }
switch ($match[1]) {
case 'P':
$paste_ids[] = $match[2];
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 5:11 PM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6719919
Default Alt Text
D16442.id39547.diff (806 B)
Attached To
Mode
D16442: Make the chatbot obey the object name blacklist
Attached
Detach File
Event Timeline
Log In to Comment