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
|
@@ 490-497 (lines=8) @@
|
| 487 |
|
$lastAtPos = \strpos($id, '@', $pos + 1); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
|
if ($pos !== false) { |
| 491 |
|
$user = \substr($id, 0, $pos); |
| 492 |
|
$remote = \substr($id, $pos + 1); |
| 493 |
|
$remote = $this->fixRemoteURL($remote); |
| 494 |
|
if (!empty($user) && !empty($remote)) { |
| 495 |
|
return [$user, $remote]; |
| 496 |
|
} |
| 497 |
|
} |
| 498 |
|
|
| 499 |
|
throw new \Exception('Invalid Federated Cloud ID'); |
| 500 |
|
} |
lib/private/Share/Helper.php 1 location
|
@@ 225-232 (lines=8) @@
|
| 222 |
|
$lastAtPos = \strpos($id, '@', $pos + 1); |
| 223 |
|
} |
| 224 |
|
|
| 225 |
|
if ($pos !== false) { |
| 226 |
|
$user = \substr($id, 0, $pos); |
| 227 |
|
$remote = \substr($id, $pos + 1); |
| 228 |
|
$remote = self::fixRemoteURL($remote); |
| 229 |
|
if (!empty($user) && !empty($remote)) { |
| 230 |
|
return [$user, $remote]; |
| 231 |
|
} |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
$l = \OC::$server->getL10N('core'); |
| 235 |
|
$hint = $l->t('Invalid Federated Cloud ID'); |