mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
more complete fix
This commit is contained in:
parent
ec7ed8d780
commit
19c126a7a6
1 changed files with 1 additions and 0 deletions
|
@ -124,6 +124,7 @@ defmodule PhilomenaWeb.ImageView do
|
||||||
# https://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista
|
# https://stackoverflow.com/questions/265769/maximum-filename-length-in-ntfs-windows-xp-and-windows-vista
|
||||||
file_name_slug_fragment =
|
file_name_slug_fragment =
|
||||||
image.tags
|
image.tags
|
||||||
|
|> display_order()
|
||||||
|> Enum.map_join("_", & &1.slug)
|
|> Enum.map_join("_", & &1.slug)
|
||||||
|> String.to_charlist()
|
|> String.to_charlist()
|
||||||
|> Enum.filter(&(&1 in ?a..?z or &1 in '0123456789_-+'))
|
|> Enum.filter(&(&1 in ?a..?z or &1 in '0123456789_-+'))
|
||||||
|
|
Loading…
Reference in a new issue