aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mod/profile/icon.php4
-rw-r--r--mod/profile/icondirect.php4
-rw-r--r--simplecache/view.php5
3 files changed, 10 insertions, 3 deletions
diff --git a/mod/profile/icon.php b/mod/profile/icon.php
index 38a9dc1b2..594bb0894 100644
--- a/mod/profile/icon.php
+++ b/mod/profile/icon.php
@@ -51,6 +51,8 @@
header("Pragma: public");
header("Cache-Control: public");
header("Content-Length: " . strlen($contents));
- echo $contents;
+ $splitString = str_split($contents, 8192);
+ foreach($splitString as $chunk)
+ echo $chunk;
?> \ No newline at end of file
diff --git a/mod/profile/icondirect.php b/mod/profile/icondirect.php
index cf67fae04..1bfa51fee 100644
--- a/mod/profile/icondirect.php
+++ b/mod/profile/icondirect.php
@@ -91,7 +91,9 @@
header("Pragma: public");
header("Cache-Control: public");
header("Content-Length: " . strlen($contents));
- echo $contents;
+ $splitString = str_split($contents, 8192);
+ foreach($splitString as $chunk)
+ echo $chunk;
}
} else {
mysql_close($mysql_dblink);
diff --git a/simplecache/view.php b/simplecache/view.php
index 99f40c141..afc0f89ae 100644
--- a/simplecache/view.php
+++ b/simplecache/view.php
@@ -62,6 +62,9 @@
}
}
- echo $contents;
+ // echo $contents;
+ $splitString = str_split($contents, 8192);
+ foreach($splitString as $chunk)
+ echo $chunk;
?> \ No newline at end of file