Page 1 of 1

(SOLVED)Posting Slashes in KB article / \ C:\windows etc

PostPosted: Fri Apr 27, 2007 10:55 am
Author: shedt_v
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Basic Knowledge
Board URL: [url]http://[/url]

PHP Version:
MySQL Version:


What was done before the problem appeared?
Fresh install


What was done to try to solve the problem?
Tried doing alternative ways IE posting in a code box etc.



De.scription and Message

When I post test into a KB article, it does not display the slashes. Is this because I have html enabled for KB articles?

Like this:

C:Documents and SettingsAdministratorLocal SettingsApplication Data

It displays like this:

C:Documents and SettingsAdministratorLocal SettingsApplication Data

Without the slashes.

Any suggestions or work arounds? Thank you so very much!

<img>

PostPosted: Fri Apr 27, 2007 11:21 am
Author: Whisky
Dont now why but it could be because somewhere php recognize them as escaping characters.
I've got 2 solutions:

1. You replace all backslashes with double backslashes like this:
Code: Select all
C]

2. you replace all backslashes by their HTML code which is [code]\[/code]
like this]C:\Documents and Settings\Administrator\Local Settings\Application Data\

PostPosted: Fri Apr 27, 2007 3:38 pm
Author: shedt_v
Thank you, the double slashes works prefect

<img>

PostPosted: Sat Apr 28, 2007 6:47 am
Author: Whisky
fine then <img>