MDL-70130 core: Compare realpaths for file attachment checks
authorAndrew Nicols <andrew@nicols.co.uk>
Fri, 6 Nov 2020 02:46:02 +0000 (10:46 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Fri, 6 Nov 2020 03:00:30 +0000 (11:00 +0800)
commit50f5563c1f48aeded84971e18ca420fa74133403
treeee17993bd36efb73d8ababa3316b178330903bae
parent1c0b8f8c501f294d6800e28655092281e806dece
MDL-70130 core: Compare realpaths for file attachment checks

Rather than using the provided path, the `realpath` must be used to
ensure that the use of symlinks in paths is normalised.
lib/moodlelib.php