Skip to content

Commit 022cbb3

Browse files
author
Artur (Seti) Łabudziński
committed
.
1 parent 53d548e commit 022cbb3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Client.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -387,6 +387,13 @@ public function upload($context, $filePathArray)
387387
protected function createUrlByContext($context)
388388
{
389389
$host = $this->getConfiguration()->getJiraHost();
390+
391+
if (substr($context,0,1) === '*') {
392+
$context = substr($context,1);
393+
394+
return $host . '/rest' . '/' . preg_replace('/\//', '', $context, 1);
395+
}
396+
390397
return $host . $this->api_uri . '/' . preg_replace('/\//', '', $context, 1);
391398
}
392399
/**

0 commit comments

Comments
 (0)