Browse Source

Fix for new socks function

HalianElf 5 years ago
parent
commit
5d63af7021
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/classes/organizr.class.php

+ 1 - 1
api/classes/organizr.class.php

@@ -9094,7 +9094,7 @@ class Organizr
 		if (!$error) {
 			$pre = explode('/api/v2/socks/', $requestObject->getUri()->getPath());
 			$endpoint = explode('/', $pre[1]);
-			$new = str_ireplace($endpoint[0], '', $requestObject->getUri()->getPath());
+			$new = str_ireplace($endpoint[0], '', $pre[1]);
 			$getParams = ($_GET) ? '?' . http_build_query($_GET) : '';
 			$url = $this->qualifyURL($this->config[$url]) . $new . $getParams;
 			$url = $this->cleanPath($url);