Permalink
Browse files

Fixed typo in garbage.php

  • Loading branch information...
adolfintel committed Sep 5, 2017
1 parent b379a97 commit 6730d2befc597cf239a2383b0ce7be00884936e0
Showing with 2 additions and 2 deletions.
  1. +2 −2 garbage.php
@@ -8,7 +8,7 @@
// Download follows...
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=random.dat');
header('Content-Disposition: attachment; filename=random.dat');
header('Content-Transfer-Encoding: binary');
// Never cache me
header('Cache-Control: no-store, no-cache, must-revalidate, max-age=0');
@@ -17,7 +17,7 @@
// Generate data
$data=openssl_random_pseudo_bytes(1048576);
// Deliver chunks of 1048576 bytes
$chunks=isset($_GET['ckSize']) ?? intval($_GET['ckSize']) : 4;
$chunks=isset($_GET['ckSize']) ? intval($_GET['ckSize']) : 4;
if(empty($chunks)){$chunks = 4;}
if($chunks>100){$chunks = 100;}
for($i=0;$i<$chunks;$i++){

0 comments on commit 6730d2b

Please sign in to comment.