Remember, non-canonicalized paths are never to be used for anything on UNIXes.
They cannot be trusted.
Ideally, stop storing stuff in the filesystem and use a proper database. Odds are it'll perform better anyway (on top of the other consistency & reliability benefits).
This is prompted by the news of yet another exploitable path-based vulnerability.
@lispi314
Neither can Communists, who belong in chippers, plastic shredders, or ovens.