bug when creating web pages from files with a # in filename

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
xnMartin
Posts: 2
Joined: Wed Jan 19, 2011 5:39 pm

bug when creating web pages from files with a # in filename

Post by xnMartin »

Hello,

I created some web galleries using 'Create' -> 'Web Page...' from the menu of XnView Browser.
All my graphic files have the numbering character '#' inside their filenames.
I created the web page using the template 'Pixnview [black]'.
Everything worked fine with one exception. The '#PIC_LINK#' macro inside the template does not escape the '#' character to %23 and the whitespace to %20.
Other macros work properly. Here the macro and the result inside the html file:

original filename: "2010.05.29 Unsere Hochzeit - Standesamt #002.jpg"

"#PIC_LINK#" -> "2010.05.29 Unsere Hochzeit - Standesamt #002.jpg"

some examples where it works properly:

"#PREV_PAGE#" -> "2010.05.29%20Unsere%20Hochzeit%20-%20Standesamt%20%23123.html"
"#THUMB_LINK#" -> "thumbs/2010.05.29%20Unsere%20Hochzeit%20-%20Standesamt%20%23002.jpg"

I guess the PIC_LINK macro is simply not escaped, but it should be.

Best Regards and thanks for XnView
Martin

PS: This is problematic because Firefox(3.6.13) does not load the image when the '#' is not escaped (IE does it).
PS #2: XnView Version 1.97.8
User avatar
xnview
Author of XnView
Posts: 46255
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: bug when creating web pages from files with a # in filen

Post by xnview »

Pierre.
xnMartin
Posts: 2
Joined: Wed Jan 19, 2011 5:39 pm

Re: bug when creating web pages from files with a # in filen

Post by xnMartin »

Hi,

tested it today with the final of v1.98 and everything is escaped now as expected.
Thank you very much for your support.

Regards
Martin
Post Reply