vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Slashes removed from posts (https://vborg.vbsupport.ru/showthread.php?t=325438)

cmmguy 07-25-2017 10:55 AM

Slashes removed from posts
 
I have a forum where users will occasionally start threads with code examples in them. They use the CODE or PHP bbcode to display it. Sometimes code examples will have paths in them with the back slashes. The forum software removes the slashes from the posts.

Where is this done?
Is it done for security reasons?
Is there a setting that can be changed that allows the slashes in posts?

Thank you

Brandon Sheley 07-25-2017 11:14 AM

via the similar threads right under this one...

https://vborg.vbsupport.ru/showthread.php?t=54066

cmmguy 07-25-2017 01:22 PM

Actually, the slash"" removal happens globally in all posts. Inside BBCODE and outside. It is puzzling. I thought this was some security thing but it is more of some kind of issue I guess.

That link is archived to the point that I cant get any info from it.

MarkFL 07-25-2017 02:30 PM

If you disable plugins, does it still happen?

cmmguy 07-25-2017 02:55 PM

Quote:

Originally Posted by MarkFL (Post 2588869)
If you disable plugins, does it still happen?

Yes, it does. I disabled all plugins and it continued to remove slashes from posts.
It is only the backslashes "" and not the forward slash. It removes them here also as I put a backslash in those quotes.

MarkFL 07-25-2017 03:22 PM

The behavior I found here just now is that for any string of text within double-quotes, if that string ends with a backslash, that backslash is trimmed.

I get the same behavior on my vB 4,2,5 dev site.

Kane@airrifle 07-25-2017 03:46 PM

<a href="http://php.net/manual/en/function.stripslashes.php" target="_blank">http://php.net/manual/en/function.stripslashes.php</a>


All times are GMT. The time now is 12:32 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.00999 seconds
  • Memory Usage 1,720KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete