[Pkg-owncloud-commits] [owncloud] 160/394: add function to safly end output buffering
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:11:53 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 6fb5095197f47a916f59e304d3cee7d694c7c7ca
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Nov 29 17:58:24 2012 +0100
add function to safly end output buffering
---
lib/util.php | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
diff --git a/lib/util.php b/lib/util.php
index ec3e918..d3118bf 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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list