This is a discussion on Bad Character in title within the v4 Modules / Modifications forums, part of the Help & Support category; Hi, When I post an ad with an Apostrophe in the Title like: "Nice 'Cats' " The system return in ...
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Hi,
When I post an ad with an Apostrophe in the Title like: "Nice 'Cats' " The system return in the Title "Nice \'Cats\' ". The description is OK. Look at this ads Nice 'Cats' Look the title and the description. When I work at localhost everything is fine but since I transfered everything on the server it look like this. I looked at PHPAdmin the database and all the file are type InnoDB but the total MyISAM. Do you thing it could be it? |
|
#2
|
||||
|
||||
|
It is probably because of different magic_quotes_gpc settings.
Did you add it locally and then import the database or add this new on the server?
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#3
|
||||
|
||||
|
I add this new on the server.
If I remove the backslash character " \ " in phpadmin. It display correctly. If I add a new listing on the server, It add Backslash character. |
|
#4
|
||||
|
||||
|
Can you try this.
Open includes/functions.php and find: Code:
function safeAddSlashes($theValue)
{
$theValue = (!get_magic_quotes_gpc()) ? stripslashes($theValue) : $theValue;
$theValue = mysql_real_escape_string(trim($theValue));
return $theValue;
}
Code:
function safeAddSlashes($theValue)
{
$theValue = (get_magic_quotes_gpc()) ? stripslashes($theValue) : $theValue;
$theValue = mysql_real_escape_string(trim($theValue));
return $theValue;
}
__________________
Eric Barnes 68 Classifieds Developer Please do not send me a private message asking for support. Instead use these open forums or our ticket system. Customer Area | Issue Tracker | Documentation | 68C Mods | Submit a Ticket | Twitter |
|
#5
|
||||
|
||||
|
Nope does'nt work,
I remarked something, I can remove the " \ " in the admin and the phpadmin but not at the place ads. |
|
#6
|
||||
|
||||
|
Hi Eric,
Do you fnd something else to correct this problem? |
|
#7
|
||||
|
||||
|
I would recommend using HTML ENTITIES in your validation.
The correct ENTITY Code:
' =& #39; PHP Code:
__________________
Super Mod v4 Is out and ready for download. DEMO Purchase V4 Super Mod BETA at Reduced Price Visit Me @ Classified-Sofware.co.uk **Important** - All modules with the exceptions of the Bulk Upload System will be removed from my modshop on Tuesday September 30th. If you require a module you must get it before that date. |
|
#8
|
||||
|
||||
|
I don't know if it can cause a problem, but in step3submit.php
I change this code: PHP Code:
PHP Code:
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| character encoding | seymourjames | v4 Questions & Support | 0 | 10-05-2008 06:02 AM |
| ISO Latin Character Sets | seymourjames | v4 Questions & Support | 21 | 08-14-2008 05:41 PM |
| iso character sets again | seymourjames | v4 Modules / Modifications | 4 | 07-22-2008 03:40 PM |
| German Character Set and Modifications | eweiss | v3.1 Questions & Support | 2 | 10-02-2007 09:15 AM |
| Extra field character limit. | Lhotch | v3.1 Suggestions and Feedback | 0 | 05-04-2006 04:33 PM |