Be stricter when matching URLs.
Submitted by: gahr Obtained from: https://github.com/shellinabox/shellinabox/pull/448/