diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-11-29 17:58:24 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-11-29 23:15:13 +0100 |
commit | 6fb5095197f47a916f59e304d3cee7d694c7c7ca (patch) | |
tree | d96689cb66ecdc1d625ffd4f801601c88cdbcde3 /lib | |
parent | 79a7ee656e09d10252b1e0944dd96008eef058c3 (diff) | |
download | nextcloud-server-6fb5095197f47a916f59e304d3cee7d694c7c7ca.tar.gz nextcloud-server-6fb5095197f47a916f59e304d3cee7d694c7c7ca.zip |
add function to safly end output buffering
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/util.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php index ec3e91893d3..d3118bfb06f 100755 --- a/lib/util.php +++ b/lib/util.php @@ -575,7 +575,17 @@ class OC_Util { } } - /* + /** + * clear all levels of output buffering + */ + public static function obEnd(){ + while (ob_get_level()) { + ob_end_clean(); + } + } + + + /** * @brief Generates a cryptographical secure pseudorandom string * @param Int with the length of the random string * @return String |