Skip to content

Commit 28ff32e

Browse files
authored
fixing edipi syntax
1 parent 8cf9ea6 commit 28ff32e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

auth.php

+10
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,17 @@ private function get_expected_username($cert) {
264264
* This will return the default username
265265
*/
266266
private function get_edipi_number($cert, $edipiProperty) {
267+
268+
$certHasProperty = property_exists($cert, $edipiProperty);
269+
if ($certHasProperty == false)
270+
return null;
271+
267272
$edipiRaw = $cert->$edipiProperty;
273+
274+
$edipiParsedAsString = is_string($edipiRaw);
275+
if ($edipiParsedAsString == false)
276+
return null;
277+
268278
$edipiParts = explode(".", $edipiRaw);
269279
$edipiLastPart = end($edipiParts);
270280

0 commit comments

Comments
 (0)