Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
Strange Syntax issues.
I can't start a line with / and some code crashes the site.
Avatar
AVMW #1
Member for 2 weeks · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Strange Syntax issues.
Edit:
It seems that I missed an informative post. I will check mod security and the apache logs this evening to see if I can work out what the issue is.

Good Morning,

I have searched the forum and can't find similar issues. I have most likely misconfigured something however I am at a loss to what.

I use DocuWiki (fantastic product BTW) as a bit of a personal code store. As such, I enter a lot of code into the pages. If I try and start a line with say "/opt/" the site will crash and I will see:

///
Forbidden
You don't have permission to access /wiki/doku.php on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
///

It's not a major issue for me, I just change it to "  /  opt" and it works fine. I feel as though it is maybe a security feature to stop XXS or similar?

Recently, I have been trying to publish this piece of code:
opt/local/pgsql/bin/psql rwdb web -c "update users set user_active='t' where user_login= 'admin'";

Even if I remove all of the /'s, it still gives me the Forbidden error.

Can anyone think of what this may be?

Much appreciated.
This post was edited on 2018-11-06, 10:28 by AVMW.
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4374 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I seem to remember that there are certain constructions which are apache triggers:
https://www.dokuwiki.org/faq:mod_security
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-11-16, 21:17:23 (UTC +01:00)