Harden issubdirectory()

realpath() may return false in case the directory does not exist since we can not be sure how different PHP versions may behave here we do an additional check whether realpath returned false
Rename issubdirectory to isSubDirectory
Merge pull request #8541 from owncloud/hardenIsSubDirectory

Harden issubdirectory()