We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19033
    • 892 Posts
    yama さん。ありがとうございます。
    とりあえず、そちらに、ポストしてきました。
    http://modxcms.com/forums/index.php/topic,20141.0.html
    (タイトル長い...)。

    soushi さん、詳しくありがとうございます。
    現時点では、外した状態にしてあります。ただ、そのことを頭に置いておいた方がいいってことですね。

    yamaさんが教えて下さったとこに、
    ユーザのフルネームにシングルコーテーションを入れて保存、保存と
    繰り返していくと、「\」がどんどん追加されていく、また、
    カテゴリの作成でもカテゴリ名にシングルコーテーションを使うと、
    「\」が挿入されるというふうに報告してきました。

    あと、こんな報告は見つけました。
    http://modxcms.com/bugs/task/927?tasks=last
    http://modxcms.com/bugs/task/921?tasks=last
      • 28073
      • 164 Posts
      MEGUさん問い合わせありがとうございます smiley
      まだレスはついてないようですが、反応してくれるのでしょうか…。

      とりあえず補足として以下の文章を考えてみたのですが、どうでしょうか?
      英文は完全に翻訳ソフト頼りで書いてます(笑)

      This problem execute two times ’mysql_escape_string’ function.

      [example]create and edit user
      source:modx-0.9.6.1/manager/processors/save_user.processor.php

      1st mysql_escape_string.
      39:$fullname = mysql_escape_string($_POST['fullname']);
      


      2nd mysql_escape_string.
      316:$sql = "UPDATE $dbase.`" . $table_prefix . "user_attributes` SET
      317:			fullname='" . mysql_escape_string($fullname) . "',
      318:			role='$roleid',
      


      If either 1nd or 2nd ’mysql_escape_string’ is removed, it solves.
      Which should be removed?, I do not understand.

      In ’Category name’ case, executed ’mysql_escape_string’ in ’/manager/processors/save_(htmlsnippet|module|etc..).processor.php’ and ’/manager/includes/categories.inc.php’.

      This problem causes another problem.
      Unintelligible sequence of characters might be caused under multi byte environment.

      あとMEGUさんが見つけた報告もmysql_escape_string関数を2回通ってるせいの問題かもしれないですね。
      優先度が「High」のやつをためしに自分の環境でやってみたらMODxが動かなくなりました(笑)
      (キャッシュファイルを直接消せば元に戻ります)
        • 19033
        • 892 Posts
        こんにちは。

        せっかく翻訳したのなら、直接あちらに書いてぇ... laugh
        私の英語もアヤシイですが、最初のところを
        This problem is caused by using ’mysql_escape_string’ 2 time.
        とかにして。。 I do not understand. は、 I am not sure. の方が
        雰囲気が伝わりそうでしょうか。。
          • 28073
          • 164 Posts
          というわけでMEGUさんの修正を大いに参考にして(というかそのまま使って)投稿してきました laugh
          さて、意味は伝わるでしょうか…どきどき。

            • 19033
            • 892 Posts
            こんにちは。通じてます。パチパチパチ! laugh

            それで、ここに書いてねっていうことなので、
            http://modxcms.com/bugs
            書いてきたんですけど。。どきどき。。
            http://modxcms.com/bugs/task/977
              • 28073
              • 164 Posts
              こんばんわ~。

              英語の投稿、通じてるみたいでよかったです smiley
              そしてbugtrackへの投稿ありがとうございます。
              これで次のリリースでは修正されるのかな… grin
                • 19033
                • 892 Posts
                こんにちは。

                http://modxcms.com/bugs/task/977

                revision 3309 で解決されたそうです。
                0961p1じゃ、ないみたいですね?