lib/private/Share/Helper.php 1 location
|
@@ 279-286 (lines=8) @@
|
| 276 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
if ($pos !== false) { |
| 280 |
|
$user = substr($id, 0, $pos); |
| 281 |
|
$remote = substr($id, $pos + 1); |
| 282 |
|
$remote = self::fixRemoteURL($remote); |
| 283 |
|
if (!empty($user) && !empty($remote)) { |
| 284 |
|
return [$user, $remote]; |
| 285 |
|
} |
| 286 |
|
} |
| 287 |
|
|
| 288 |
|
$l = \OC::$server->getL10N('core'); |
| 289 |
|
$hint = $l->t('Invalid Federated Cloud ID'); |
apps/federatedfilesharing/lib/AddressHandler.php 1 location
|
@@ 90-97 (lines=8) @@
|
| 87 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if ($pos !== false) { |
| 91 |
|
$user = substr($id, 0, $pos); |
| 92 |
|
$remote = substr($id, $pos + 1); |
| 93 |
|
$remote = $this->fixRemoteURL($remote); |
| 94 |
|
if (!empty($user) && !empty($remote)) { |
| 95 |
|
return [$user, $remote]; |
| 96 |
|
} |
| 97 |
|
} |
| 98 |
|
|
| 99 |
|
$hint = $this->l->t('Invalid Federated Cloud ID'); |
| 100 |
|
throw new HintException('Invalid Federated Cloud ID', $hint); |
apps/files_sharing/lib/Controller/ShareesController.php 1 location
|
@@ 439-446 (lines=8) @@
|
| 436 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
if ($pos !== false) { |
| 440 |
|
$user = substr($id, 0, $pos); |
| 441 |
|
$remote = substr($id, $pos + 1); |
| 442 |
|
$remote = $this->fixRemoteURL($remote); |
| 443 |
|
if (!empty($user) && !empty($remote)) { |
| 444 |
|
return [$user, $remote]; |
| 445 |
|
} |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
throw new \Exception('Invalid Federated Cloud ID'); |
| 449 |
|
} |