]> source.dussan.org Git - nextcloud-server.git/commit
The "dir" key is used within the public sharing template to indicate in which directo...
authorLukas Reschke <lukas@owncloud.com>
Tue, 25 Nov 2014 12:52:44 +0000 (13:52 +0100)
committerLukas Reschke <lukas@owncloud.com>
Tue, 25 Nov 2014 12:52:44 +0000 (13:52 +0100)
commit32a90911b0d99c009d077eddbbdda4599db30073
treec21426e8eaf0ccb0cf6d6fd290be00efb58317d6
parent8ea0187ecdf37bc26aa1c0260e34f2dd9c744e99
The "dir" key is used within the public sharing template to indicate in which directory the user currently is when sharing a directory with subdirectories. This is needed by the JS scripts.

However, when not accessing a directory then "dir" was set to the relative path of the file (from the user's home directory), meaning that for every public shared file the sharee can see the path.
(For example if you share the file "foo.txt" from "finances/topsecret/" the sharee would still see the path "finances/topsecret/" from the shared HTML template)

This is not the excpected behaviour and can be considered a privacy problem, this patch addresses this by setting "dir" to an empty key.

Port of https://github.com/owncloud/core/pull/12262, approved with https://github.com/owncloud/core/pull/12262#issuecomment-64394040
apps/files_sharing/public.php