Skip to content

Commit

Permalink
Updated for new location of StupidUtilites methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jonesde committed Oct 28, 2016
1 parent d024984 commit 0db99b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/groovy/org/moqui/fop/HtmlRenderServlet.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ import org.apache.fop.svg.PDFTranscoder
import org.moqui.context.ArtifactAuthorizationException
import org.moqui.context.ArtifactTarpitException
import org.moqui.context.ExecutionContext
import org.moqui.impl.StupidUtilities
import org.moqui.impl.context.ExecutionContextFactoryImpl
import org.moqui.impl.webapp.ScreenResourceNotFoundException
import org.moqui.screen.ScreenRender
import org.moqui.util.StringUtilities
import org.slf4j.Logger
import org.slf4j.LoggerFactory

Expand Down Expand Up @@ -99,7 +99,7 @@ class HtmlRenderServlet extends HttpServlet {
response.setContentType(contentType)
if (output == "svg") response.setCharacterEncoding("UTF-8")
if (filename) {
String utfFilename = StupidUtilities.encodeAsciiFilename(filename)
String utfFilename = StringUtilities.encodeAsciiFilename(filename)
response.addHeader("Content-Disposition", "attachment; filename=\"${filename}\"; filename*=utf-8''${utfFilename}")
} else {
response.addHeader("Content-Disposition", "inline")
Expand Down

0 comments on commit 0db99b7

Please sign in to comment.