Bug 39320 - PHP warning in univention simplesamlphp theme
PHP warning in univention simplesamlphp theme
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: SAML
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1
Assigned To: Florian Best
Erik Damrose
: interim-2
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-09 11:37 CEST by Florian Best
Modified: 2015-11-17 12:11 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2015-09-09 11:37:40 CEST
Apache error.log contains:
PHP Warning:  htmlspecialchars() expects parameter 1 to be string, array given in /usr/share/simplesamlphp/modules/univentiontheme/themes/univention/core/loginuserpass.php on line 29, referer: http://master501.deadlock50.intranet/univention-management-console/

 29                 echo('<p>' . htmlspecialchars($this->data['SPMetadata']['description']) . '</p>');

Accessing [0] of that array fixes it.
Comment 1 Florian Best univentionstaff 2015-10-17 16:29:49 CEST
univention-saml (3.0.23-1):
r64556 | Bug #39320: fix PHP warning caused by template
Comment 2 Erik Damrose univentionstaff 2015-11-04 12:05:28 CET
OK: Fixed, error does not appear in error.log anymore
OK: interim bug, no changelog necessary
Comment 3 Stefan Gohmann univentionstaff 2015-11-17 12:11:54 CET
UCS 4.1 has been released:
 https://docs.software-univention.de/release-notes-4.1-0-en.html
 https://docs.software-univention.de/release-notes-4.1-0-de.html

If this error occurs again, please use "Clone This Bug".