Member
Member
roboticsguy1988   2010-04-11, 06:30
#1

Hello i just installed Zen Photo to try it out and i noticed one of the oddest things i have ever seen.

Zen photo keeps having random HTML tags pop up in absolutely random places. Here is an example http://lawrenceejohnston.com/Capture.JPG and another http://lawrenceejohnston.com/Capture2.JPG

The only think i can think of is i recently edited my PHP.ini file.. but the settings are typical of any web server that i have ever ran.

If anyone has any ideas on what could be causing this and a solution i would be very appreciative.

Thanks!

Administrator
Administrator
acrylian   2010-04-11, 08:06
#2

Not your fault, this is actually a known bug in Webkit browsers like Safari or Chrome with JavaScript code. It always happens on the first page load and goes away if reloading the page. It does not happen in Internet Explorer or Firefox.

Sorry, but sadly we have no solution for this as all code is actually correct. Even some tricks from the net like placing the code at the bottom of a page did not help.

If anyone hase we would be grateful as my main browser is also Safari and I am actually annoyed by this, too.

Update: Well, seems I am not right. This is related to javascript code not being escaped using CDDATA correctly. Probably we missed it somewhere.

Member
Member
roboticsguy1988   2010-04-11, 18:07
#3

I was totally unaware of a CDATA escape. So i read up on it here http://www.howtocreate.co.uk/tutorials/javascript/incorporate . So will this possibly be fixed in the next release of Zen Photo?

Member
Member
kagutsuchi   2010-04-11, 18:15
#4

The fix has already been committed in SVN (changeset [5238]). If you need the fix now, you can try installing the nightly build once it's generated tonight. Also, the change will be included in the next release.

Member
Member
roboticsguy1988   2010-04-11, 18:23
#5

Wow talk about speedy service! You guys are awesome! Thanks for the help and introducing me to the CDATA escape!

Administrator
Administrator
acrylian   2010-04-11, 18:33
#6

Well, actually it still appears in some places where js is called within a `likejavescriptomefunction()` occasionally. We also might have missed escaping somewhere, we have lots of js...:-)

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.