Quick Login   
 
Register AdminFusion Tutorials Post Fusion Forum Matrix
 
Go Back AdminFusion » Software & Tech » Software » SMF » Apostrophes turning into quotes?
Reply
 
LinkBack
Old 07-16-2007, 11:32 PM   #1
Veteran
 
htmlmaster's Avatar
 
Join Date: Oct 2005
Posts: 652
htmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to allhtmlmaster is a name known to all
Apostrophes turning into quotes?

On my forum, whenever I type an apostrophe, it turns into a quotation mark after I post the message. Anyone have any idea what could be causing this?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.


To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
htmlmaster is offline   Reply With Quote
Old 07-18-2007, 10:30 PM   #2
Member
 
Oldiesmann's Avatar
 
Join Date: Apr 2006
Location: Cincinnati, Ohio
Posts: 72
Oldiesmann is on a distinguished road
Send a message via AIM to Oldiesmann Send a message via MSN to Oldiesmann Send a message via Yahoo to Oldiesmann
Sounds like a problem with the magic_quotes settings in PHP. Your host has both magic_quotes_runtime and magic_quotes_sybase enabled.

The magic_quotes_runtime setting causes PHP to automatically escape any quotes in a string.

The magic_quotes_sybase setting causes PHP to escape single quotes with another single quote instead of a backslash. The "sybase" part refers to the name of a company that makes a database system using such a format (www.sybase.com for more info). PostgreSQL also uses this format (which is apparently the SQL standard).

Fortunately, you can fix things by adding these two lines to index.php (right after the opening PHP tag):

Code:
ini_set('magic_quotes_runtime', '0');
ini_set('magic_quotes_sybase', '0');
If you still want PHP to automatically escape quotes for all GET, POST and COOKIE values, add this line to .htaccess in the forum directory:

Code:
php_value magic_quotes_gpc On
SMF will automatically add slashes to those variables if magic_quotes_gpc isn't enabled, so it doesn't really matter either way.
__________________
The Oldiesmann

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Compliance Manager / Marketing Team member

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- RC1 now available!
Oldiesmann is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

 
Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Turning the welcome message into an image TrumpetMaster Creating Interest 31 04-25-2007 08:15 AM
Turning lurkers into posters? dmoore Creating Interest 9 04-02-2007 11:35 PM
phpBB quotes issue forumbulge phpBB 6 03-08-2006 04:04 AM

AdminFusion

All times are GMT +1. The time now is 05:56 AM. Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0

© 2009 AdminFusion | Advertising Opportunities | Legal | A member of the Crowdgather Forum Community
 
From:
Title:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77