Welcome to Geeklog, Anonymous Friday, December 27 2024 @ 06:01 pm EST
Geeklog Forums
Still apostrophe in search result
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
11
12
Quote
Status: offline
tomw
Forum User
Full Member
Registered: 08/12/02
Posts: 300
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
11
9
Quote
Status: offline
ScottMcW
Forum User
Chatty
Registered: 09/22/02
Posts: 42
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
11
12
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Yes, that issue is already listed as a bug - but not fixed yet.
bye, Dirk
13
10
Quote
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.
9
8
Quote
All times are EST. The time is now 06:01 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content