https://bugzilla.wikimedia.org/show_bug.cgi?id=54968
Web browser: --- Bug ID: 54968 Summary: LdapAuthentication can genere bad DNS request due to not triming leading blanks from servernames Product: MediaWiki extensions Version: unspecified Hardware: All OS: Solaris Status: UNCONFIRMED Severity: normal Priority: Unprioritized Component: LdapAuthentication Assignee: rlan...@gmail.com Reporter: pe...@savecore.se Classification: Unclassified Mobile Platform: --- The leading " " that currently is generated can cause bad DNS request for hostname=0, this can easily be fixed by adding an ltrim after the rtrim on line 571 $servers = ""; $tmpservers = $this->getConf( 'ServerNames', $domain ); $tok = strtok( $tmpservers, " " ); while ( $tok ) { $servers = $servers . " " . $serverpre . $tok . ":" . $this->getConf( 'Port', $domain ); $tok = strtok( " " ); } $servers = rtrim( $servers ); $servers = ltrim( $servers ); -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l