Posted on: 10/30/02 01:50pm
By: Anonymous (Anonymous)
I'sorry to write again about "apostrophe" but I searched the site for an hour and could not find an answer.
In the search results page I still have backslashes in front of every apostrophe in staticpages titles.
I can't find how to fix this.
Thanks
Still apostrophe in search result
Posted on: 10/31/02 06:08am
By: tomw
This problem is common to all version of static pages that I could find since they all share the same search code (with minor variations). Here is the fix:
In the file plugins/staticpages/functions.inc -- in the function plugin_dopluginsearch_staticpages() -- about line 58 of that function, you will find the lines:
$thetime = COM_getUserDateTimeFormat($A['day']);
$row = array("<a href= . . . . . (long line deleted)
add a line between these two lines as follows:
$thetime = COM_getUserDateTimeFormat($A['day']);
$A['sp_title'] = stripslashes($A['sp_title']); << added line
$row = array("<a href= . . . . . (long line deleted).
Tom
Still apostrophe in search result
Posted on: 10/31/02 12:00pm
By: Dirk
Makes sense - I've changed this in CVS now, too. Thanks.
There was also a stripslashes() missing for the list of static pages on the admin's index page.
bye, Dirk
Still apostrophe in search result
Posted on: 10/31/02 01:44pm
By: ScottMcW
Just a quick note on this topic...I sent out a mailing to my users today and of course I got a copy too. Every apostrophe in there was slashed. So, that stripslash code should probably work it's way into the Mailings function too.
Thanks!
Scott
Still apostrophe in search result
Posted on: 10/31/02 02:01pm
By: Dirk
Yes, that issue is already listed as a bug[*1] - but not fixed yet.
bye, Dirk
Still apostrophe in search result
Posted on: 11/01/02 08:59am
By: Anonymous (Anonymous)
Yes this works.
In public_html/admin edit mail.php
Near line 179 you have:
if (!mail($til, $vars['subject'], $vars['message'], $headers)) {
Change it to:
if (!mail($til, stripslashes($vars['subject']), stripslashes($vars['message']), $headers)) {
Ans slashed apostrophes will be gone form message subject and body.