2
0
Yuki Takei 7 жил өмнө
parent
commit
73859346a2

+ 1 - 1
lib/service/passport.js

@@ -181,7 +181,7 @@ class PassportService {
 
 
     // parse serverUrl
     // parse serverUrl
     // see: https://regex101.com/r/0tuYBB/1
     // see: https://regex101.com/r/0tuYBB/1
-    const match = serverUrl.match(/(ldaps?:\/\/[^\/]+)\/(.*)?/);
+    const match = serverUrl.match(/(ldaps?:\/\/[^/]+)\/(.*)?/);
     if (match == null || match.length < 1) {
     if (match == null || match.length < 1) {
       debug('LdapStrategy: serverUrl is invalid');
       debug('LdapStrategy: serverUrl is invalid');
       return (req, callback) => { callback({ message: 'serverUrl is invalid'}) };
       return (req, callback) => { callback({ message: 'serverUrl is invalid'}) };