Page MenuHomePhabricator

D15500.id37368.diff
No OneTemporary

D15500.id37368.diff

diff --git a/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
--- a/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
+++ b/src/applications/diffusion/conduit/DiffusionQueryPathsConduitAPIMethod.php
@@ -79,7 +79,8 @@
$offset = (int)$request->getValue('offset');
if (strlen($pattern)) {
- $pattern = '/'.preg_quote($pattern, '/').'/';
+ // Add delimiters to the regex pattern.
+ $pattern = '('.$pattern.')';
}
$results = array();

File Metadata

Mime Type
text/plain
Expires
Tue, Oct 22, 8:43 PM (3 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6714792
Default Alt Text
D15500.id37368.diff (597 B)

Event Timeline