Drupal sites(including drupal.org) accept multiple "/" s in the URL


I see that our site doesn’t give any error if a user enters multiple /s. I see this happening with other drupal sites as well.

For ex., https://www.drupal.org///////////node/add/forum/22


Is there a way to restrict or not respond or respond with a 404 for such browser requests?

Thank you for your help!

Drupal version: 

Source: https://www.drupal.org/taxonomy/term/22/feed