|
@@ -29,7 +29,7 @@ discard block |
|
|
block discarded – undo |
|
29
|
29
|
|
|
30
|
30
|
// Request password and give access if correct |
|
31
|
31
|
if ( ! isset( $_SERVER['PHP_AUTH_USER'] ) && ! isset( $_SERVER['PHP_AUTH_PW'] ) ) { |
|
32
|
|
- $give_access = false; |
|
|
32
|
+ $give_access = false; |
|
33
|
33
|
} else { |
|
34
|
34
|
$username = get_option( 'ss_podcasting_protection_username' ); |
|
35
|
35
|
$password = get_option( 'ss_podcasting_protection_password' ); |
|
@@ -78,7 +78,7 @@ discard block |
|
|
block discarded – undo |
|
78
|
78
|
$no_access_message = '<div style="text-align:center;font-family:sans-serif;border:1px solid red;background:pink;padding:20px 0;color:red;">' . $message . '</div>'; |
|
79
|
79
|
|
|
80
|
80
|
header('WWW-Authenticate: Basic realm="Podcast Feed"'); |
|
81
|
|
- header('HTTP/1.0 401 Unauthorized'); |
|
|
81
|
+ header('HTTP/1.0 401 Unauthorized'); |
|
82
|
82
|
|
|
83
|
83
|
die( $no_access_message ); |
|
84
|
84
|
} |
Please login to merge, or discard this patch.