Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git sb-includes/admin.php sb-includes/admin.php
- index aeab8e8..ef6e960 100644
- --- sb-includes/admin.php
- +++ sb-includes/admin.php
- @@ -794,7 +794,9 @@ function sb_files() {
- $valid_url = false;
- if(ini_get('allow_url_fopen')) {
- $headers = array_change_key_case(get_headers($url, 1),CASE_LOWER);
- - if ($headers[0] == 'HTTP/1.1 200 OK') {
- + $matches = array();
- + $matched = preg_match('#HTTP/\d+\.\d+ (\d+)#', $headers[0], $matches);
- + if ($matched && $matches[1] == '200') {
- if ($_POST['import_type'] == 'download') {
- $filename = substr($url, strrpos ($url, '/')+1);
- $filename = substr($filename, 0, strrpos ($filename, '?'));
- @@ -2579,4 +2581,4 @@ function sb_add_contextual_help($help) {
- $out.= '</p></div>';
- return $out;
- }
- -?>
- \ No newline at end of file
- +?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement