Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion phpBB/includes/functions_display.php
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ function get_forum_parents(&$forum_data)
}
else
{
$forum_parents = unserialize($forum_data['forum_parents']);
$forum_parents = unserialize($forum_data['forum_parents'], ['allowed_classes' => false]);
}
}

Expand Down
6 changes: 3 additions & 3 deletions phpBB/phpbb/extension/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function enable_step($name)
return false;
}

$old_state = (isset($this->extensions[$name]['ext_state'])) ? unserialize($this->extensions[$name]['ext_state']) : false;
$old_state = (isset($this->extensions[$name]['ext_state'])) ? unserialize($this->extensions[$name]['ext_state'], ['allowed_classes' => false]) : false;

$extension = $this->get_extension($name);

Expand Down Expand Up @@ -278,7 +278,7 @@ public function disable_step($name)
return false;
}

$old_state = unserialize($this->extensions[$name]['ext_state']);
$old_state = unserialize($this->extensions[$name]['ext_state'], ['allowed_classes' => false]);

$extension = $this->get_extension($name);
$state = $extension->disable_step($old_state);
Expand Down Expand Up @@ -330,7 +330,7 @@ public function purge_step($name)
$this->disable($name);
}

$old_state = unserialize($this->extensions[$name]['ext_state']);
$old_state = unserialize($this->extensions[$name]['ext_state'], ['allowed_classes' => false]);

$extension = $this->get_extension($name);
$state = $extension->purge_step($old_state);
Expand Down
2 changes: 1 addition & 1 deletion phpBB/phpbb/notification/type/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function set_initial_data($data = array())
{
// The row from the database (unless this is a new notification we're going to add)
$this->data = $data;
$this->data['notification_data'] = !empty($this->data['notification_data']) ? unserialize($this->data['notification_data']) : [];
$this->data['notification_data'] = !empty($this->data['notification_data']) ? unserialize($this->data['notification_data'], ['allowed_classes' => false]) : [];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion phpBB/phpbb/textreparser/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function get_resume_data($name)
if ($this->resume_data === null)
{
$resume_data = $this->config_text->get('reparser_resume');
$this->resume_data = !empty($resume_data) ? unserialize($resume_data) : array();
$this->resume_data = !empty($resume_data) ? unserialize($resume_data, ['allowed_classes' => false]) : array();
}

return isset($this->resume_data[$name]) ? $this->resume_data[$name] : array();
Expand Down