mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Merge pull request #11 from polytan02/master
Fix for potential infinite loop
This commit is contained in:
commit
faf877a9ca
4 changed files with 18 additions and 13 deletions
|
@ -89,6 +89,6 @@ sudo chmod 644 $finalphpconf
|
|||
sudo yunohost app setting $app skipped_uris -v "/"
|
||||
|
||||
# Reload Nginx and regenerate SSOwat conf
|
||||
sudo service php5-fpm restart
|
||||
sudo service php5-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -10,6 +10,6 @@ sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf
|
|||
sudo rm -f /etc/php5/fpm/pool.d/$app.conf
|
||||
|
||||
# Restart of services
|
||||
sudo service php5-fpm restart
|
||||
sudo service php5-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
|
|
@ -90,8 +90,6 @@ sudo yunohost app setting $app skipped_uris -v "/"
|
|||
|
||||
|
||||
# Restart of services
|
||||
sudo service php5-fpm restart
|
||||
sudo service php5-fpm reload
|
||||
sudo service nginx reload
|
||||
sudo yunohost app ssowatconf
|
||||
|
||||
|
||||
|
|
|
@ -2075,6 +2075,13 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
|
|||
|
||||
if (!isset($this->permanentStorage->fmFimapFid)) {
|
||||
ZLog::Write(LOGLEVEL_DEBUG, sprintf("BackendIMAP->getFolderIdFromImapId('%s') IMAP cache folder not found, creating one", $imapid));
|
||||
// folderId to folderImap mapping
|
||||
$this->permanentStorage->fmFidFimap = array();
|
||||
// folderImap to folderId mapping
|
||||
$this->permanentStorage->fmFimapFid = array();
|
||||
// folderImap to folderId mapping - lowercase
|
||||
$this->permanentStorage->fmFimapFidLowercase = array();
|
||||
|
||||
$this->GetFolderList();
|
||||
}
|
||||
|
||||
|
@ -2126,24 +2133,24 @@ class BackendIMAP extends BackendDiff implements ISearchProvider {
|
|||
// generate folderid and add it to the mapping
|
||||
$folderid = sprintf('%04x%04x', mt_rand( 0, 0xffff ), mt_rand( 0, 0xffff ));
|
||||
|
||||
// folderId to folderImap mapping
|
||||
if (!isset($this->permanentStorage->fmFidFimap))
|
||||
$this->permanentStorage->fmFidFimap = array();
|
||||
// // folderId to folderImap mapping
|
||||
// if (!isset($this->permanentStorage->fmFidFimap))
|
||||
// $this->permanentStorage->fmFidFimap = array();
|
||||
|
||||
$a = $this->permanentStorage->fmFidFimap;
|
||||
$a[$folderid] = $imapid;
|
||||
$this->permanentStorage->fmFidFimap = $a;
|
||||
|
||||
// folderImap to folderid mapping
|
||||
if (!isset($this->permanentStorage->fmFimapFid))
|
||||
$this->permanentStorage->fmFimapFid = array();
|
||||
// // folderImap to folderid mapping
|
||||
// if (!isset($this->permanentStorage->fmFimapFid))
|
||||
// $this->permanentStorage->fmFimapFid = array();
|
||||
|
||||
$b = $this->permanentStorage->fmFimapFid;
|
||||
$b[$imapid] = $folderid;
|
||||
$this->permanentStorage->fmFimapFid = $b;
|
||||
|
||||
if (!isset($this->permanentStorage->fmFimapFidLowercase))
|
||||
$this->permanentStorage->fmFimapFidLowercase = array();
|
||||
// if (!isset($this->permanentStorage->fmFimapFidLowercase))
|
||||
// $this->permanentStorage->fmFimapFidLowercase = array();
|
||||
|
||||
$c = $this->permanentStorage->fmFimapFidLowercase;
|
||||
$c[strtolower($imapid)] = $folderid;
|
||||
|
|
Loading…
Add table
Reference in a new issue