diff --git a/bl-kernel/ajax/upload-profile-picture.php b/bl-kernel/ajax/upload-profile-picture.php index 8ea2bb8a..63bf6f21 100644 --- a/bl-kernel/ajax/upload-profile-picture.php +++ b/bl-kernel/ajax/upload-profile-picture.php @@ -31,7 +31,7 @@ $tmpFilename = $username.'.'.$fileExtension; $filename = $username.'.png'; // Check path traversal -if (Text::stringContains($username, '/', false)) { +if (Text::stringContains($username, DS, false)) { $message = 'Path traversal detected.'; Log::set($message, LOG_TYPE_ERROR); ajaxResponse(1, $message);