owncloud/core — pull request #4896 by schiesbn (2013-09-18 09:54:43+00:00)
Title: sharing, allow user to disable password protection

only remember the old password if the user changes the permissions, otherwise the user disabled the password protection. In this case the password should be set to null.