Skip to content

Commit 3e952df

Browse files
authored
Merge pull request #74 from petski/FixSubjectContainingId
Fix for scenario in which subject contains an id.
2 parents 2fc39c6 + 092814d commit 3e952df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RequestTracker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ protected function parseResponse($response, $delimiter = ':')
479479
private function parseLongFormatSearchResponse($response, $delimiter = ':')
480480
{
481481
$resultNodes = array();
482-
$resultStrings = preg_split('/(?=id: )/', $response['body'], null);
482+
$resultStrings = preg_split('/(?=^id: )/m', $response['body'], null);
483483
// First item contains RT version and newline, remove it.
484484
unset($resultStrings[0]);
485485
foreach ($resultStrings as $resultString) {

0 commit comments

Comments
 (0)