[EventCalendar] ec3_get_events() not translating ampersands into
character entities
ejm
cq547 at torfree.net
Tue Oct 9 13:31:59 UTC 2007
Thank you for your reply, JD;
I'm relieved to not even try to deal with php.ini. I have looked and
as far as I can see there are no php.ini files in my folders. (There
is a php.fcgi in my root folder though.)
>Try this fix for the rest of your problem. [...]
>2. Find:
> $calendar_days[$day_id]->add_post($ent->post_title,$time,$ent->is_event);
>3. Replace it with:
> $calendar_days[$day_id]->add_post(wp_specialchars($ent->post_title),$time,$ent->is_event);
I had thought that it might be something around there and had already
tried
wp_specialchars($calendar_days[$day_id]->add_post($ent->post_title,$time,$ent->is_event));
which, of course, didn't work as I had hoped at all and just changed
' into &#039
I have now added your suggested fix. The page loads without visible
error messages but alas, the same validation errors persist. Here is
just one of the error messages:
---validator.w3.org---
Line 704, Column 197: reference not terminated by REFC delimiter.
071001" title="Event: This month' s events: CRNC ACR peace.ca
and media
----------------------
I have also noticed a vaguely alarming new problem that did not exist
before - when I try to go back or forward on the calendar, the
previous or future calendar is blank. This happens whether I have
wp_specialchars or not.
-ejm
P.S. I sort of remember seeing something about this and will search
through the archives to find the fix. I wonder if I have another
plugin conflicting.
On Mon, 08 Oct 2007 10:42:30 -0400, JD Puglisi <jdpuglisi at hotmail.com>
wrote:
>Don't worry about the php.ini file since wp_specialchars worked for you.
>
>Try this fix for the rest of your problem.
>1. In your EC3 directory find the template-functions.php file, make a backup
>and open it in a text editor.
>2. Find:
> $calendar_days[$day_id]->add_post($ent->post_title,$time,$ent->is_event);
>3. Replace it with:
> $calendar_days[$day_id]->add_post(wp_specialchars($ent->post_title),$time,$
>ent->is_event);
>4. Let us know if that worked.
>------------------
>It has to do with ec3_get_calendar()
>
>What do I have to change to get those to work?
>
>(Sigh. Where is the php.ini file? Is that part of wp?)
More information about the EventCalendar
mailing list