remove unused variable
remove trailing slash from path
Merge pull request #10191 from owncloud/sharing_rm_trailing_slash

[sharing] remove trailing slash