mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-21 01:28:47 +02:00
#193 Fixed regression due to the usage of gzcompress/gzuncompress
SVN:trunk[634]
This commit is contained in:
@@ -493,13 +493,16 @@ class DBObjectSearch
|
||||
public function serialize()
|
||||
{
|
||||
$sOql = $this->ToOql();
|
||||
return base64_encode(gzcompress($sOql));
|
||||
return base64_encode($sOql);
|
||||
}
|
||||
|
||||
static public function unserialize($sValue)
|
||||
{
|
||||
$sOql = base64_decode($sValue);
|
||||
return self::FromOQL(gzuncompress($sOql));
|
||||
// We've tried to use gzcompress/gzuncompress, but for some specific queries
|
||||
// it was not working at all (See Trac #193)
|
||||
// gzuncompress was issuing a warning "data error" and the return object was null
|
||||
return self::FromOQL($sOql);
|
||||
}
|
||||
|
||||
// SImple BUt Structured Query Languag - SubuSQL
|
||||
|
||||
Reference in New Issue
Block a user