Skip to content
Snippets Groups Projects
Commit cafd3cce authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

get the rawurlencode done right

parent a30f6526
No related branches found
No related tags found
No related merge requests found
...@@ -114,7 +114,9 @@ class OAuth { ...@@ -114,7 +114,9 @@ class OAuth {
} elseif ($json['error']) { } elseif ($json['error']) {
\PageLayout::postError(_("Authentifizierungsfehler:")." ".$json['error']); \PageLayout::postError(_("Authentifizierungsfehler:")." ".$json['error']);
} else { } else {
\PageLayout::postInfo("Access-Token wurde erfolgreich erneuert."); if (\Studip\ENV === "development") {
\PageLayout::postInfo("Access-Token wurde erfolgreich erneuert.");
}
$config = \UserConfig::get($GLOBALS['user']->id); $config = \UserConfig::get($GLOBALS['user']->id);
$config->store("OWNCLOUD_ACCESS_TOKEN", $json['access_token']); $config->store("OWNCLOUD_ACCESS_TOKEN", $json['access_token']);
//$config->store("OWNCLOUD_REFRESH_TOKEN", $json['refresh_token']); //$config->store("OWNCLOUD_REFRESH_TOKEN", $json['refresh_token']);
......
...@@ -42,7 +42,7 @@ class OwncloudFolder extends VirtualFolderType { ...@@ -42,7 +42,7 @@ class OwncloudFolder extends VirtualFolderType {
public function store() public function store()
{ {
$old_id = $this->parent_id . '/' . $this->name; $old_id = $this->parent_id . '/' . rawurlencode($this->name);
if ($this->getId() != $old_id) { if ($this->getId() != $old_id) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment