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
|
@@ 89-96 (lines=8) @@
|
| 86 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 87 |
|
} |
| 88 |
|
|
| 89 |
|
if ($pos !== false) { |
| 90 |
|
$user = substr($id, 0, $pos); |
| 91 |
|
$remote = substr($id, $pos + 1); |
| 92 |
|
$remote = $this->fixRemoteURL($remote); |
| 93 |
|
if (!empty($user) && !empty($remote)) { |
| 94 |
|
return [$user, $remote]; |
| 95 |
|
} |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
$hint = $this->l->t('Invalid Federated Cloud ID'); |
| 99 |
|
throw new HintException('Invalid Federated Cloud ID', $hint); |
apps/files_sharing/lib/Controller/ShareesController.php 1 location
|
@@ 374-381 (lines=8) @@
|
| 371 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 372 |
|
} |
| 373 |
|
|
| 374 |
|
if ($pos !== false) { |
| 375 |
|
$user = substr($id, 0, $pos); |
| 376 |
|
$remote = substr($id, $pos + 1); |
| 377 |
|
$remote = $this->fixRemoteURL($remote); |
| 378 |
|
if (!empty($user) && !empty($remote)) { |
| 379 |
|
return [$user, $remote]; |
| 380 |
|
} |
| 381 |
|
} |
| 382 |
|
|
| 383 |
|
throw new \Exception('Invalid Federated Cloud ID'); |
| 384 |
|
} |