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
|
@@ 483-490 (lines=8) @@
|
| 480 |
|
$lastAtPos = \strpos($id, '@', $pos + 1); |
| 481 |
|
} |
| 482 |
|
|
| 483 |
|
if ($pos !== false) { |
| 484 |
|
$user = \substr($id, 0, $pos); |
| 485 |
|
$remote = \substr($id, $pos + 1); |
| 486 |
|
$remote = $this->fixRemoteURL($remote); |
| 487 |
|
if (!empty($user) && !empty($remote)) { |
| 488 |
|
return [$user, $remote]; |
| 489 |
|
} |
| 490 |
|
} |
| 491 |
|
|
| 492 |
|
throw new \Exception('Invalid Federated Cloud ID'); |
| 493 |
|
} |
lib/private/Share/Helper.php 1 location
|
@@ 276-283 (lines=8) @@
|
| 273 |
|
$lastAtPos = \strpos($id, '@', $pos + 1); |
| 274 |
|
} |
| 275 |
|
|
| 276 |
|
if ($pos !== false) { |
| 277 |
|
$user = \substr($id, 0, $pos); |
| 278 |
|
$remote = \substr($id, $pos + 1); |
| 279 |
|
$remote = self::fixRemoteURL($remote); |
| 280 |
|
if (!empty($user) && !empty($remote)) { |
| 281 |
|
return [$user, $remote]; |
| 282 |
|
} |
| 283 |
|
} |
| 284 |
|
|
| 285 |
|
$l = \OC::$server->getL10N('core'); |
| 286 |
|
$hint = $l->t('Invalid Federated Cloud ID'); |