# HG changeset patch # User Sebastien Jodogne # Date 1526020652 -7200 # Node ID 4555a8ef2e88edc91364816fb41d8403fe7bb7e7 # Parent fcf447be9e97b4b43487a7e1f9a5d7773504ff87 escape colons in path diff -r fcf447be9e97 -r 4555a8ef2e88 Resources/Samples/Lua/WriteToDisk.lua --- a/Resources/Samples/Lua/WriteToDisk.lua Wed May 09 15:57:44 2018 +0200 +++ b/Resources/Samples/Lua/WriteToDisk.lua Fri May 11 08:37:32 2018 +0200 @@ -2,7 +2,8 @@ function ToAscii(s) -- http://www.lua.org/manual/5.1/manual.html#pdf-string.gsub - return s:gsub('[^a-zA-Z0-9-/ ]', '_') + -- https://groups.google.com/d/msg/orthanc-users/qMLgkEmwwPI/6jRpCrlgBwAJ + return s:gsub('[^a-zA-Z0-9-/-: ]', '_') end function OnStableSeries(seriesId, tags, metadata)