Prevent moving a folder to its own subfolder

Currently a folder can be moved into its own subfolder; supposedly more tricky to handle with a a complete selection of folders. Idea: Upon selecting a destination folder check whether any of the selected folders is a parent folder of it in the backend.