Project

General

Profile

Problem inputing shell commands in Wiki

Added by Michele Stuart about 15 years ago

Hi. I'm loving Redmine so far, but have run into one issue. I am trying to use the Wiki to share technical documentation with my team, which often includes Unix commands. I think the problem I'm running into is with the "/" character.

For example, this works:

      cd foo

But this does not:

      cd /foo

With the "/" I get this error when I try to preview or save:

Method Not Implemented
POST to /wiki/cms/Test_page/preview not supported.

I've tried using a "\" as an escape, tried quotes, tried code tags, and tried the textile "==" tags. All to no avail. I can't help but notice that I seem to be able to include the character in this forum post with no problem; does anybody know if I should be able to do this in the Wiki?

Thanks!

Michele


Replies (3)

RE: Problem inputing shell commands in Wiki - Added by Brad Beattie about 15 years ago

Hrm. I just tried it and it worked for me.

h1. Test page

cd foo
cd /foo

<pre>
cd foo
cd /foo
</pre>

@cd foo@
@cd /foo@

That's the code I tried and ran into no issues. Hrm.

RE: Problem inputing shell commands in Wiki - Added by Michele Stuart about 15 years ago

Well, just knowing that it's supposed to work is helpful. Perhaps I've mucked something up somewhere along the line. I had considered a version issue, but I'm using Redmine stable 0.8 and Rails 2.1.2, which should be right, based on the environment.rb file in the stable branch. I will update when I find the answer. If there's anything in particular you think I should look at, please let me know. And thanks for checking this out.

Michele

RE: Problem inputing shell commands in Wiki - Added by Michele Stuart about 15 years ago

Found it! Nothing to do with Redmine at all. Modsecurity on the proxy server in front of Redmine thinks this is a "System Command Injection" attack.

Thank you for your help!

Michele

    (1-3/3)