Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2014, 08:18 AM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Weird Characters in posts.

I'm starting to have an issue on my forum (3.8.5) whereby some posts are having certain characters being changed, things like ', ", - are being changed into this:
Quote:
***8220;Success is stumbling from failure to failure with no loss of enthusiasm.***8221;
***8213; Winston Churchill
Whereas it should be:
Quote:
"Success is stumbling from failure to failure with no loss of enthusiasm."
- Winston Churchill
But it's not happening to all posts, only some. I've been searching the net and reading on vb.com but it's above my understanding. I have picked up on what I think may be the problem, but I don't know, and that's the character setting? Here are some screenshots that I have taken after reading various threads on vb.com

Can anybody see anything wrong anywhere? Thanks.

This is one of the posts:



The settings on the first page at phpmyadmin



The collation column when I select my database in phpmyadmin



The Character set in vb admincp



Character set and collation from vb admincp



I don't really know what any of this all means so hoping someone can pick up on something that is incorrect?

For the time being I have had to use the Replacement Variable Manager to fix this, but I'd prefer to fix the issue properly, thank you.
Reply With Quote
  #2  
Old 07-21-2014, 10:15 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you change them to *** at the beginning or did they appear like that? If they were &# instead of ***, then they'd be left and right double quote characters and I guess a long dash for 8213, and it would appear correctly. So maybe you have something changing &# to *** or something like that? Maybe check your censored words to see if you have anything like that in there.
Reply With Quote
  #3  
Old 07-21-2014, 11:16 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume this example is from a post that had copy/paste involved.
Reply With Quote
  #4  
Old 07-22-2014, 03:32 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
Did you change them to *** at the beginning or did they appear like that? If they were &# instead of ***, then they'd be left and right double quote characters and I guess a long dash for 8213, and it would appear correctly. So maybe you have something changing &# to *** or something like that? Maybe check your censored words to see if you have anything like that in there.
Yes, just checked and I have &# as a censored word. I'm not sure why but I think that was due to the admin username being exploited?

Quote:
Originally Posted by Max Taxable View Post
I assume this example is from a post that had copy/paste involved.
One of the posts, yes, but not all of the posts were copy and pasted, like this one for example, I assume it is supposed to be a ? instead of the characters?
Attached Images
File Type: jpg url6.JPG (26.6 KB, 0 views)
Reply With Quote
  #5  
Old 07-22-2014, 03:53 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

More on this page - http://www.marineaquariumsa.com/hard...tml#post859313

I've removed the &# from the censored words list and rebuilt the post cache, but they still remain. Guess I'll wait a couple of days to see if it occurs again. Thanks for the tip.

Strange though how it's only on some posts and not all?
Reply With Quote
  #6  
Old 07-22-2014, 04:09 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by viper357 View Post
More on this page - http://www.marineaquariumsa.com/hard...tml#post859313

I've removed the &# from the censored words list and rebuilt the post cache, but they still remain. Guess I'll wait a couple of days to see if it occurs again. Thanks for the tip.

Strange though how it's only on some posts and not all?
The censoring happens before the posts are saved, so it's permanent even if you change what's censored. The only way to fix the existing ones would be to edit the post.

It could be the reason that it only happens for some posts is that it would only happen if the post contained the html entity. If it contained a literal double quote or dash it wouldn't happen.
Reply With Quote
3 благодарности(ей) от:
Lynne, Max Taxable, tbworld
  #7  
Old 07-22-2014, 07:26 PM
viper357's Avatar
viper357 viper357 is offline
 
Join Date: Dec 2006
Location: Worthing, UK
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Makes sense, thank you.
Reply With Quote
  #8  
Old 07-22-2014, 09:18 PM
Max Taxable's Avatar
Max Taxable Max Taxable is offline
 
Join Date: Feb 2011
Posts: 3,134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm a weird character myself, it's really the only reason I chimed in.
Reply With Quote
Благодарность от:
tbworld
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:53 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06026 seconds
  • Memory Usage 2,259KB
  • Queries Executed 14 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (4)post_thanks_box_bit
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (1)postbit_attachment
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • postbit_attachment
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete