Skip to content

Commit

Permalink
clean input path, fix DS issue on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
khanhlh committed Aug 9, 2016
1 parent 96a857e commit 44f4dc8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libraries/joomla/form/fields/filelist.php
Expand Up @@ -193,7 +193,10 @@ protected function getOptions()
$path = JPATH_ROOT . '/' . $path;
}

// Prepend some default options based on field attributes.
// clean input path, fix DS issue on windows
$path = JPath::clean($path);

// Prepend some default options based on field attributes.
if (!$this->hideNone)
{
$options[] = JHtml::_('select.option', '-1', JText::alt('JOPTION_DO_NOT_USE', preg_replace('/[^a-zA-Z0-9_\-]/', '_', $this->fieldname)));
Expand Down

0 comments on commit 44f4dc8

Please sign in to comment.