Skip to content
Merged
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
2 changes: 1 addition & 1 deletion dev2/sites.d/webmail.profullstack.com.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"service": "webmail.profullstack.com",
"repo": null,
"branch": null,
"image": "profullstack/webmail:1.7.5-cal2",
"image": "profullstack/webmail:1.7.5-cal3",
"start_command": "apache2-foreground",
"port_var": "80",
"domains": [
Expand Down
4 changes: 3 additions & 1 deletion dev2/webmail/googlecal/googlecal.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ public function connect()
$this->rc->output->redirect(['_task' => 'settings', '_action' => 'edit-prefs', '_section' => 'googlecal']);
return;
}
$_SESSION['googlecal_state'] = $state = bin2hex(random_bytes(16));
// "wm." routes the reply through the registered mynaposter.com relay page
// (apps/web/assets/oauth-callback.js) back to this server's callback.
$_SESSION['googlecal_state'] = $state = 'wm.' . bin2hex(random_bytes(16));
$url = self::AUTH_URL . '?' . http_build_query([
'client_id' => $this->rc->config->get('googlecal_client_id'),
'redirect_uri' => $this->redirect_uri(),
Expand Down
Loading