MCPcopy Create free account
hub / github.com/error311/FileRise / fr_profile_pic_url

Function fr_profile_pic_url

config/config.php:612–620  ·  view source on GitHub ↗
(string $filename)

Source from the content-addressed store, hash-verified

610}
611
612function 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
622function fr_normalize_profile_pic_url(string $url): string
623{

Callers 6

uploadPictureMethod · 0.85
uploadBrandLogoMethod · 0.85
uploadPortalLogoMethod · 0.85
getPortalBySlugMethod · 0.85
getPublicPortalMetaMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected