lib/private/Share/Helper.php 1 location
|
@@ 274-277 (lines=4) @@
|
| 271 |
|
|
| 272 |
|
// Find the last @ before $invalidPos |
| 273 |
|
$pos = $lastAtPos = 0; |
| 274 |
|
while ($lastAtPos !== false && $lastAtPos <= $invalidPos) { |
| 275 |
|
$pos = $lastAtPos; |
| 276 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 277 |
|
} |
| 278 |
|
|
| 279 |
|
if ($pos !== false) { |
| 280 |
|
$user = substr($id, 0, $pos); |
apps/federatedfilesharing/lib/AddressHandler.php 1 location
|
@@ 85-88 (lines=4) @@
|
| 82 |
|
|
| 83 |
|
// Find the last @ before $invalidPos |
| 84 |
|
$pos = $lastAtPos = 0; |
| 85 |
|
while ($lastAtPos !== false && $lastAtPos <= $invalidPos) { |
| 86 |
|
$pos = $lastAtPos; |
| 87 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 88 |
|
} |
| 89 |
|
|
| 90 |
|
if ($pos !== false) { |
| 91 |
|
$user = substr($id, 0, $pos); |
apps/files_sharing/lib/Controller/ShareesController.php 1 location
|
@@ 434-437 (lines=4) @@
|
| 431 |
|
|
| 432 |
|
// Find the last @ before $invalidPos |
| 433 |
|
$pos = $lastAtPos = 0; |
| 434 |
|
while ($lastAtPos !== false && $lastAtPos <= $invalidPos) { |
| 435 |
|
$pos = $lastAtPos; |
| 436 |
|
$lastAtPos = strpos($id, '@', $pos + 1); |
| 437 |
|
} |
| 438 |
|
|
| 439 |
|
if ($pos !== false) { |
| 440 |
|
$user = substr($id, 0, $pos); |