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 02:54:09 +0000 (10:54 +0800)
commitc42c08793b5ecc94fb23d78cec95f2602e02caf0
treef0bafb65b076ca13186df667644e572c4c451252
parent4f22fad9ac4876cee5fa1e8590e50efed54c969b
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