Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,7 @@ Options -Indexes
<IfModule pagespeed_module>
ModPagespeed Off
</IfModule>
#### DO NOT CHANGE ANYTHING ABOVE THIS LINE ####

ErrorDocument 403 //core/templates/403.php
ErrorDocument 404 //core/templates/404.php
5 changes: 4 additions & 1 deletion lib/private/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ public function delete() {
if ($this->emitter) {
$this->emitter->emit('\OC\User', 'preDelete', [$this]);
}
// homeDir needs to be retrieved before the user is deleted - otherwise it isn't correct and the fallback is used
$homeDir = $this->getHome();

$result = $this->backend->deleteUser($this->uid);
if ($result) {

Expand All @@ -210,7 +213,7 @@ public function delete() {
\OC::$server->getConfig()->deleteAllUserValues($this->uid);

// Delete user files in /data/
\OC_Helper::rmdirr($this->getHome());
\OC_Helper::rmdirr($homeDir);

// Delete the users entry in the storage table
Storage::remove('home::' . $this->uid);
Expand Down