News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

2.0.15 and apostrophe bug

Started by okegima, February 06, 2018, 04:41:19 PM

Previous topic - Next topic

okegima

Greeting,

am having an issue with my SMF 2.0.15 forum.

words with appostrophe get a slash after posting. And each time i refresh the post, a slash is added

Quotei'll see
Quoteafter posting ;  i\'ll see
Quoteafter modifying;  i\\'ll see

Please help :)

Illori

are you using SMF 2.1 or SMF 2.0.15?

okegima

Quote from: Illori on February 06, 2018, 04:45:46 PM
are you using SMF 2.1 or SMF 2.0.15?

Greeting,

I downloaded the 2.0.15 version.

okegima

Finally found the happen !

For some reason, I load a word press environment into my index.template.php before the function template_body_above()

Quoterequire_once('../wp-blog-header.php');

I did try load it into the function function template_body_above(), and '\ is removed.

To resume = '\ Issue !
Quote
require_once('../wp-blog-header.php');
function template_body_above()
{
   global $context, $settings, $options, $scripturl, $txt, $modSettings, $wpdb;
}

To resume = ' Works !
Quote
function template_body_above()
{
   require_once('../wp-blog-header.php');
   global $context, $settings, $options, $scripturl, $txt, $modSettings, $wpdb;
}

Advertisement: