Skip to content

Commit

Permalink
ENGCOM-4800: Error on design configuration save with imageUploader fo…
Browse files Browse the repository at this point in the history
…rm element po… #22132
  • Loading branch information
sivaschenko authored Apr 28, 2019
2 parents 9c27244 + 71efc42 commit dcccadc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Theme/Model/Design/Backend/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ private function getMime()
*/
private function getRelativeMediaPath(string $path): string
{
return str_replace('/pub/media/', '', $path);
return preg_replace('/\/(pub\/)?media\//', '', $path);
}

/**
Expand Down

0 comments on commit dcccadc

Please sign in to comment.