We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61d3d21 commit 710d32fCopy full SHA for 710d32f
SourceGitweb/SourceGitweb.php
@@ -34,11 +34,9 @@ public function register() {
34
public function url_get_auth( $p_url, $p_user, $p_pass ) {
35
if( strlen( $p_user ) > 0 && strlen( $p_pass ) > 0 ) {
36
$t_url_parts = preg_split("/:\\/\\//", $p_url );
37
- $t_url_with_credentials = $t_url_parts[0] . "://" . $p_user . ":" . $p_pass . "@" .$t_url_parts[1];
38
- return file_get_contents( $t_url_with_credentials );
39
- } else {
40
- return url_get( $p_url );
+ $p_url = $t_url_parts[0] . "://" . $p_user . ":" . $p_pass . "@" .$t_url_parts[1];
41
}
+ return url_get( $p_url );
42
43
44
public function show_type() {
0 commit comments