diff --git a/lib/Service/RecipeService.php b/lib/Service/RecipeService.php index 82305454..e3307731 100755 --- a/lib/Service/RecipeService.php +++ b/lib/Service/RecipeService.php @@ -1245,11 +1245,12 @@ class RecipeService { $str = str_replace(["\r", "\n"], ' ', $str); } + $str = str_replace("\t", ' ', $str); + $str = str_replace("\\", '_', $str); + // We want to remove forward-slashes for the name of the recipe, to tie it to the directory structure, which cannot have slashes if ($remove_slashes) { - $str = str_replace(["\t", "\\", "/"], '_', $str); - } else { - $str = str_replace(["\t", "\\"], '_', $str); + $str = str_replace('/', '_', $str); } $str = html_entity_decode($str);