Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17948672
D16442.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.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
Fri, Aug 1, 9:41 PM (4 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8393051
Default Alt Text
D16442.diff (806 B)
Attached To
Mode
D16442: Make the chatbot obey the object name blacklist
Attached
Detach File
Event Timeline
Log In to Comment