mirror of https://github.com/apache/nifi.git
parent
bda9985d6a
commit
cb2ceeab79
|
@ -81,6 +81,8 @@ public class ConvertSvg extends HttpServlet {
|
|||
String filename = request.getParameter("filename");
|
||||
if (filename == null) {
|
||||
filename = "image.png";
|
||||
} else if (!filename.endsWith(".png")) {
|
||||
filename += ".png";
|
||||
}
|
||||
|
||||
final StringReader reader = new StringReader(svg);
|
||||
|
|
Loading…
Reference in New Issue