diff --git a/lib/pdf_generator.ex b/lib/pdf_generator.ex index 90de310..25b88ea 100644 --- a/lib/pdf_generator.ex +++ b/lib/pdf_generator.ex @@ -78,7 +78,7 @@ defmodule PdfGenerator do end # return file name of generated pdf - # requires: Porcelain, Misc.Random, zarex + # requires: Porcelain, Misc.Random @doc """ Generates a pdf file from given html string. Returns a string containing a @@ -158,7 +158,7 @@ defmodule PdfGenerator do end defp generate_filebase(nil), do: generate_filebase(Misc.Random.string) - defp generate_filebase(filename), do: Path.join(System.tmp_dir, Zarex.sanitize(filename)) + defp generate_filebase(filename), do: Path.join(System.tmp_dir, filename) def encrypt_pdf( pdf_input_path, user_pw, owner_pw ) do pdftk_path = PdfGenerator.PathAgent.get.pdftk_path diff --git a/mix.exs b/mix.exs index 20f131f..3c33330 100644 --- a/mix.exs +++ b/mix.exs @@ -49,8 +49,6 @@ defmodule PdfGenerator.Mixfile do {:porcelain, "~> 2.0"}, # a helper {:misc_random, ">=0.2.6" }, - # filename sanitizer - {:zarex, "~> 0.2"}, # generate docs {:earmark, "~> 0.1", only: :dev}, {:ex_doc, "~> 0.7", only: :dev}