Adding hexadecimal check for photos

see https://github.com/friendica/friendica/issues/6917#issuecomment-492798238
This commit is contained in:
Philipp Holzer 2019-05-29 20:28:25 +02:00
commit 3de540d1d1
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
2 changed files with 16 additions and 0 deletions

View file

@ -1027,6 +1027,10 @@ function photos_content(App $a)
// Display a single photo album
if ($datatype === 'album') {
// if $datum is not a valid hex, redirect to the default page
if (!Strings::isHex($datum)) {
$a->internalRedirect();
}
$album = hex2bin($datum);
$total = 0;