handle duplicate slashes in case of reverse proxy configuration
in case uri and script name don't match we better throw an exception
Merge pull request #6035 from owncloud/fixing-rawpath-reverseproxy-oc6

Fixing rawpath reverseproxy oc6