(string $filename)
| 610 | } |
| 611 | |
| 612 | function fr_profile_pic_url(string $filename): string |
| 613 | { |
| 614 | $name = trim((string)$filename); |
| 615 | if ($name === '') return ''; |
| 616 | $name = str_replace('\\', '/', $name); |
| 617 | $name = basename($name); |
| 618 | if ($name === '' || $name === '.' || $name === '..') return ''; |
| 619 | return '/api/public/profilePic.php?file=' . rawurlencode($name); |
| 620 | } |
| 621 | |
| 622 | function fr_normalize_profile_pic_url(string $url): string |
| 623 | { |
no outgoing calls
no test coverage detected