changeset 5:b74139388033

nabble_img relative path
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 07 Jul 2019 17:15:31 -0600
parents e79c7d4dcd7a
children c4ed473452d4
files src/nabble/model/FileUpload.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r e79c7d4dcd7a -r b74139388033 src/nabble/model/FileUpload.java
--- a/src/nabble/model/FileUpload.java	Thu Apr 25 15:15:45 2019 -0600
+++ b/src/nabble/model/FileUpload.java	Sun Jul 07 17:15:31 2019 -0600
@@ -569,7 +569,7 @@
 				String filename = HtmlTag.unquote(tag.getAttributeValue("src"));
 				if( filename==null )
 					continue;
-				String url = getUrl(filename,src);
+				String url = getPath(filename,src);
 				tag.setAttribute("src",HtmlTag.quote(url));
 				tag.setName("img");
 			}
@@ -604,6 +604,10 @@
 		return FileDownload.url(filename,src);
 	}
 
+	static String getPath(String filename,Message.Source src) {
+		return FileDownload.path(filename,src);
+	}
+
 	public static void saveImage(BufferedImage image, String fileName, Message.Source src)
 			throws ModelException
 	{