GeoURL plugin and apostrophe/single quote in site name

Creating and modifying plugins.
Post Reply
Emmental
Regular
Posts: 6
Joined: Fri May 27, 2005 4:25 am
Contact:

GeoURL plugin and apostrophe/single quote in site name

Post by Emmental »

I've just discovered that site names containing apostrophes (such as mine) chop off all text from the apostrophe onwards when displaying on the GeoURL lists.

This can be easily fixed by swapping the quotation styles for one of the lines in the plugin's .php file. Open plugins/serendipity_event_geourl/serendipity_event_geourl.php and change...

Code: Select all

print "    <meta name='DC.title' content='".$serendipity['blogTitle']."'><!-- generated by geourl plugin -->\n";
...to...

Code: Select all

print '    <meta name="DC.title" content="'.$serendipity['blogTitle'].'"><!-- generated by geourl plugin -->';
This may not be the perfect solution but worked for me. If your site name has double quotation marks in the title then you should probably leave it as it is.
Emmental's Waste of Space
A Serendipity-powered site
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: GeoURL plugin and apostrophe/single quote in site name

Post by garvinhicking »

Thanks for notifying me about this. I've just patched the plugin!

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/
Post Reply