Contact Form does not encode html special characters

Creating and modifying plugins.
Post Reply
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Contact Form does not encode html special characters

Post by sonichouse »

I noticed this when getting my blog to validate XHTML.

The offending code is in serendipity_event_contactform.php

Code: Select all

if ($this->selected()) {
$serendipity['head_title']    = $this->get_config('pagetitle');
$serendipity['head_subtitle'] = htmlspecialchars($serendipity['blogTitle']);
}
break;
Just added htmlspecialchars() function around the blogTitle.
Steve is occasionally blogging here
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Contact Form does not encode html special characters

Post by garvinhicking »

Hi!

Committed.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
sonichouse
Regular
Posts: 196
Joined: Sun May 11, 2008 2:53 am
Contact:

Post by sonichouse »

Thanks - and so quick :lol:
Steve is occasionally blogging here
Post Reply