Posts: 1,308
BitJam
Joined: 31 Aug 2009
#1
Normally if you have /etc in your post, you will get a"Forbidden" error when you try to preview or submit. People have been adding an extra space:"/ etc" to get around this. You can get the slash to display right next to"etc" by adding an empty set of BBCode tags like this:

Code: Select all

/[i][/i]etc
The empty set of tags will disappear if you preview so you have to add them back after you preview.
Posts: 850
fatmac
Joined: 26 Jul 2012
#2
I just put the first slash in brackets,
(/)etc
Posts: 765
rust collector
Joined: 27 Dec 2011
#3
/etc /etc
Posts: 2,238
dolphin_oracle
Joined: 16 Dec 2007
#4
/etc

Look ma, no hands!
Posts: 75
equimanthorn
Joined: 28 Sep 2008
#5
/etc

@Dolphin: __{{emoticon}}__ __{{emoticon}}__
Posts: 69
Neil
Joined: 16 Oct 2013
#6
Nice! Now if I just can remember this the next time I need to post something with /etc in it.
Posts: 7
aliiosmannn
Joined: 29 Mar 2015
#7
hmm regex might be fine in order to fetch etc and auto correction can be made in php before submmitting the form but its a load to server but javascript can be used for checking and correction too then the values will be passed to mysql, load is directed to user __{{emoticon}}__
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#8
The tags trick won't work inside of code sections of text. For that there is this workaround:

Code: Select all

ls /*etc/
The neat thing about this is the code works with a copy-and-paste to the command line.