Skip to content

Commit

Permalink
Now using wp_safe_redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
ideadude committed May 31, 2019
1 parent e6050df commit 5ac8051
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/getfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,11 @@
else
$uri = "http://" . $_SERVER['HTTP_HOST'] . "/" . $uri;

wp_redirect($uri);
wp_safe_redirect($uri);
exit;
}

//okay show the file
header("Content-type: " . $file_mimetype);
readfile($filename);
exit;
?>
exit;

0 comments on commit 5ac8051

Please sign in to comment.