know your libraries ;-)

strrpos fails in cases the file in the path has no dot but the parent folder
Merge pull request #1567 from owncloud/fixing-1505-stable45

know your libraries ;-)