Unwanted characters in internal URL.

Issue #7 duplicate
Anonymous created an issue

Hello, thank you for putting this code out. I find it very useful. Here's a possible bug:

{{{ - - - page.html - - -

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset={{ htmlspecialchars(encoding) }}" /> <title>{{ htmlspecialchars(page["title"]) }}</title> <link rel="stylesheet" type="text/css" href="poole.css" /> </head> <body> <table border="0">

<tr> <td width=15%><img src="lv_horizontal.png" width="80"></td> <td width=85%><h1 align="center">{{ htmlspecialchars(page["title"]) }}</h1></td> </tr>

<tr> <td width=15%></td> <td width=85%><div id="content">{{ content }}</div></td> </tr>

</table> </body> </html>

      • media.md - - -

title: Photos/Videos

Managing the photos and videos of your life.



Problem: The output page includes this line:

{{{ <td width=15%><img src="/lv_horizontal.png" width="80"></td> }}}

Notice the extra "/" in {{{<img src="}}}

That extra "/" makes the browser not find the image file, even if the image file is in the same directory.


Comments (3)

  1. Log in to comment