PDA

View Full Version : Quotes are left in strings


aquila
02-13-2008, 12:04 PM
The index.php file contains ENT_NOQUOTES everywhere instead of ENT_QUOTES, the last one converts the quotes while the first one does not do any conversion. So currently all quotes are left and html breaks.

Dkozikowski
02-13-2008, 12:17 PM
We are aware of the function of ENT_QUOTES / ENT_NOQUOTES

How does your HTML "break"?

aquila
02-13-2008, 12:19 PM
An image had the caption like "Someday..." (including those quotes). All of a sudden all meta and all image captions are invalid...
I was confused by the fact that the code comments say that all quotes are stripped and that the used entities do exactly the opposite.

Dkozikowski
02-13-2008, 12:26 PM
Well if you notice in index.php
$headline = htmlspecialchars($headline,ENT_QUOTES);
That is your image caption. I'm not sure why you are having issues.

ENT_NOQUOTES is only used for your site title/subtitle and cleaned image notes.

aquila
02-13-2008, 12:48 PM
Aha, then it's an error in the Simple template. There it says:

<meta http-equiv="content-type" name="keywords" content="PhotoBlog,<SITE_TITLE>,<IMAGE_TITLE>,Pixelpost" />