Skip to content

Commit

Permalink
Unhide /Data for VMs by modifying the user-agent.
Browse files Browse the repository at this point in the history
  • Loading branch information
deltafunction committed Jan 13, 2015
1 parent 9449dfe commit 3d6e13b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/ip_auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public function authenticate(Sabre_DAV_Server $server, $realm) {
$this->currentUser = $user_id;
\OC_User::setUserId($user_id);
OC_Util::setUpFS($user_id);
$_SERVER['HTTP_USER_AGENT'] = "IP_PASS:".$_SERVER['HTTP_USER_AGENT'];
return true;
}
else{
Expand Down

0 comments on commit 3d6e13b

Please sign in to comment.