[ticket/15699] Adjust validate path for removed method

PHPBB3-15699
This commit is contained in:
Marc Alexander 2021-03-07 10:30:04 +01:00 committed by Ruben Calvo
parent 43b402a7da
commit a6cf020639
No known key found for this signature in database

View file

@ -605,7 +605,7 @@ class acp_storage
{
if ($this->provider_collection->get_by_class($this->get_current_provider($storage_name))->get_name() == 'local' && isset($options['path']))
{
$path = $this->request->is_set_post('submit') ? $this->get_new_definition($storage_name, 'path') : $this->get_current_definition($storage_name, 'path');
$path = $this->request->is_set_post('submit') ? $this->request->variable([$storage_name, 'path'], '') : $this->get_current_definition($storage_name, 'path');
if (empty($path))
{