Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit cb3cc27

Browse files
authored
Merge pull request #101 from silinternational/develop
Release 7.4.3
2 parents eb4eced + 48cc510 commit cb3cc27

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,8 @@ language. If that's not done, the translation function will not utilize the tran
238238
Xdebug can be enabled by doing the following:
239239

240240
1. Define `REMOTE_DEBUG_IP` in `local.env`. This should be the IP address of your development machine, i.e. the one that
241-
is running your IDE. If you're using Linux as your Docker host, you can use 172.17.0.1 here.
241+
is running your IDE. If you're using Linux as your Docker host, you can use 172.17.0.1 here. Note that the IP address
242+
shown in your containers' logs may not be your machines actual IP address (it could be for a VM, for example).
242243
2. Map run-debug.sh into the container you wish to debug. For example:
243244
```yaml
244245
volumes:
@@ -253,7 +254,8 @@ In PhpStorm go to: Preferences > PHP > Debug > DBGp Proxy and set the following
253254
- Port: 9000
254255
255256
Set path mappings in: Preferences > PHP > Servers
256-
- Add a server and map the project folder to '/data/vendor/simplesamlphp/simplesamlphp/modules/material'
257+
- Add a server, giving it your IP address and a port of 9000, and map the project folder to
258+
'/data/vendor/simplesamlphp/simplesamlphp/modules/material'
257259
- Map other directories as needed. PhpStorm should prompt when an unrecognized path is encountered.
258260
259261
Then start listening by clicking the "listen" button on the PhpStorm toolbar.

themes/material/core/loginuserpass.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,13 @@ function onRecaptchaLoad() {
5454
<input type="hidden" name="AuthState" value="<?= htmlentities($this->data['stateparams']['AuthState']) ?>" />
5555

5656
<?php
57-
$csrfToken = htmlentities($this->data['csrfToken']);
57+
if (key_exists('csrfToken', $this->data)) {
58+
$csrfToken = htmlentities($this->data['csrfToken']);
59+
?>
60+
<input type="hidden" name="csrf-token" value="<?= $csrfToken ?>" />
61+
<?php
62+
}
5863
?>
59-
<input type="hidden" name="csrf-token" value="<?= $csrfToken ?>" />
6064

6165
<div class="mdl-card mdl-shadow--8dp fill-phone-viewport">
6266
<div class="mdl-card__media white-bg margin" layout-children="column">

0 commit comments

Comments
 (0)