Skip to content

Commit a12c5f7

Browse files
authored
Merge pull request #4 from soulflyman/master
fixes URL path cut off
2 parents 0185485 + 0b1fa8d commit a12c5f7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/EtherpadLite/Request.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ public function send()
5252
*/
5353
protected function getUrlPath()
5454
{
55-
return sprintf(
55+
$existingPath = parse_url($this->url, PHP_URL_PATH);
56+
57+
return $existingPath . sprintf(
5658
'/api/%s/%s',
5759
self::API_VERSION,
5860
$this->method

0 commit comments

Comments
 (0)