If you have a website that allows users to submit URLs, one of the (many many) things people will try to do to break your site is to submit URLs that use the
https:). This is almost never something that you want, since it allows users to submit essentially arbitrary code that other users will run on click in the context of your domain (same origin policy).
So how do you fix it?
First thought would be to try to check the protocol: