File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -217,17 +217,17 @@ public static function parseDsn($dsn)
217217 parse_str ($ parts ['query ' ], $ options );
218218 }
219219
220- //check 'password-hashing ' parameter and extracting password based on encoding
221- if ($ options && isset ($ options ['password-hashing ' ]) && $ options ['password-hashing ' ] === 'u ' ){
220+ //check 'password-encoding ' parameter and extracting password based on encoding
221+ if ($ options && isset ($ options ['password-encoding ' ]) && $ options ['password-encoding ' ] === 'u ' ){
222222 //extracting urlencoded password
223223 $ pass = isset ($ parts ['pass ' ]) ? urldecode ($ parts ['pass ' ]) : false ;
224224 }
225- else if ($ options && isset ($ options ['password-hashing ' ]) && $ options ['password-hashing ' ] === 'b ' ){
225+ else if ($ options && isset ($ options ['password-encoding ' ]) && $ options ['password-encoding ' ] === 'b ' ){
226226 //extracting base64 encoded password
227227 $ pass = isset ($ parts ['pass ' ]) ? base64_decode ($ parts ['pass ' ]) : false ;
228228 }
229229 else {
230- //extracting pass directly since 'password-hashing ' parameter is not present
230+ //extracting pass directly since 'password-encoding ' parameter is not present
231231 $ pass = isset ($ parts ['pass ' ]) ? $ parts ['pass ' ] : false ;
232232 }
233233
You can’t perform that action at this time.
0 commit comments