1

EDIT: I rephrased the question because I have not explained well. Let's see if this time we do best.

I'm working on a very simple blog system in PHP and MySQL through Kohana Framework. For the content of a post / entry I am using TinyMCE (POST request). I recently tried to add an entry with a piece of code in javascript by way of explanation, but it is running a part of it. More specifically I'm "using" the "exec()" inside TinyMCE/textarea (not to run it). Something like:

/regexval/.exec('string');

As I say, the problem is in the call to "exec" and when I send the form Kohana returns me the following message:

TTP_Exception_404 [ 404 ]: Unable to find a route to match the URI: 500.shtm

It seems that there is an internal error which I do not know where. My CPanel error log not showing anything and on localhost it's working properly. I wonder if there is a time when this function can be executed. I tried to debug in stopping Kohana during request execution, but whenever I stop the execution "$_POST" is empty, so I guess the problem is elsewhere.

I suppose it's a rookie mistake, but I do not know what can be and have not found anything about it (maybe I have not looked properly). So if someone can shed some light, I would be grateful. And if it is necessary to provide other information, please let me know.

Thanks for your trouble and sorry for my english.

4

1 に答える 1

0

問題の検出に失敗した後、ホスティングに連絡することにしました。どうやら、サーバーにインストールされている「mod_security」モジュールのルールが原因です。このルールを無効にしたくない、または無効にできない場合の1つの解決策は、文字の間にスペースを追加するなど、何らかの方法でテキストを変更することです。

/regexval/.e x e c('string');

時間を無駄にしてすみません、多分私は最初に私のホスティングに尋ねるべきです、しかし最初に私はこの可能性について考えていませんでした。また、貼り付けられたコードは実行され、最終的には不要であるため、削除しました。

御時間ありがとうございます。

編集:

kohanaフォーラムのcs278は、別のソリューション(この場合は機能的)を提案しています。

RegExp.prototype['ex'+'ec'].call(/regexval/, 'string');

よろしくお願いします。

于 2012-05-08T13:03:57.477 に答える