We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8cf9ea6 commit 28ff32eCopy full SHA for 28ff32e
auth.php
@@ -264,7 +264,17 @@ private function get_expected_username($cert) {
264
* This will return the default username
265
*/
266
private function get_edipi_number($cert, $edipiProperty) {
267
+
268
+ $certHasProperty = property_exists($cert, $edipiProperty);
269
+ if ($certHasProperty == false)
270
+ return null;
271
272
$edipiRaw = $cert->$edipiProperty;
273
274
+ $edipiParsedAsString = is_string($edipiRaw);
275
+ if ($edipiParsedAsString == false)
276
277
278
$edipiParts = explode(".", $edipiRaw);
279
$edipiLastPart = end($edipiParts);
280
0 commit comments