add function to safely end output buffering
This commit is contained in:
parent
c38a75e03f
commit
59d5aa2cb7
|
@ -610,6 +610,15 @@ 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
|
||||
|
|
Loading…
Reference in New Issue