We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 6214
    • 7 Posts
    Hi,

    I recently found a bug or issue within adding content to modx. Any sentence or any string of code containing the word "select" before the word "from" causes the information to not save. I understand why due to trying to prevent sequel injection, however this makes it so I cant add those two words on the same page. In my instance I am trying to add a heading titled "Our Selections" and lower in the page I have the phrase "products are made from a unique." Has anyone run into this issue and found a solution?

    Thanks,

    Jeff
      • 28042 ☆ A M B ☆
      • 24,524 Posts
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 36667
        • 57 Posts
        Peter Falkenberg Brown Reply #3, 16 years, 8 months ago
        Dear Susan,

        Your perspicacity just saved me hours. Thank you!

        I had posted an article with the words ’select’ and ’from’ in them, and it wasn’t saving.
        After reading your reply above, I realized that mod_sec was not only preventing the words from being saved in an article, it was also preventing the words from being saved in a template variable with a drop down menu and a select command against an external table. That problem had me working for hours trying to find a solution, but it was a mod_sec issue which went away when we added a mod_sec exception for /manager/index.php.

        See my post at:

        http://modxcms.com/forums/index.php/topic,42698.0.html

        Anyway, Thank you! Your post really helped me.

        Best regards,

        Peter Brown
          Visit The Significato Journal ~ nectar for the soul ~ http://significatojournal.com