ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

exp_ Being Replaced with Table Prefix on Submit

August 22, 2012 11:07am

Subscribe [1]
  • #1 / Aug 22, 2012 11:07am

    fcb66

    11 posts

    EE v2.5.2

    Hi,

    I have configured a site to use my own table prefix. I am now trying to enter content with information about the cookies the site uses, but I have kept the cookie prefix as ‘exp_’.

    As a result when the entry is submitted via the control panel it is changing the ‘exp_’ in my content to the table prefix.

    Eg:
    New table prefix = ‘abc_’

    I enter some content using the control panel ‘...the cookie exp_allow_cookies steals all your credit card details….’.

    Now when I load the page, or go back and edit the entry it reads ‘...the cookie abc_allow_cookies steals all your credit card details….’.


    In the short term I can fix it by going direct to the data in the database and changing it. But obviously I’m going to need to do this every time someone changes the content. (Fortunately this isn’t a page that will change often.)

    I just wondered if there was a setting somewhere I can use to tell ExpressionEngine not to parse out the exp_ in the content.

    Thanks.

  • #2 / Aug 22, 2012 6:20pm

    Dan Decker

    7338 posts

    Hi fcb66,

    Interesting for sure! What happens if you change the cookie prefix to something other than exp_?

    Would you mind describing your experience in a Bug Report?

    I just wondered if there was a setting somewhere I can use to tell ExpressionEngine not to parse out the exp_ in the content.

    No setting to change, something like this is being borked up in the Core, which is where the bug report will come in handy!

    Thanks for bringing this to our attention!

    Cheers,

  • #3 / Aug 23, 2012 4:05am

    fcb66

    11 posts

    Hi Dan,

    I’ve just tried this out on a completely fresh install of 2.5.2, (locally on MAMP), to make sure it’s nothing to do with my setup and it is still behaving the same.

    I installed it with the table prefix ‘abc_’ and the cookie prefix ‘xyz_’

    If I enter content with ‘exp_’ in the text it is changed to the table prefix.

    It works fine if the content contains ‘abc_’ and ‘xyz_’ also the code that is making the replacement is case sensitive, ‘Exp_’ is not changed on submitting the content.

    Bug report raised:
    https://support.ellislab.com/bugs/detail/18186

    Thanks for your help.

  • #4 / Aug 23, 2012 3:38pm

    Dan Decker

    7338 posts

    fcb66,

    Bug report raised:

    Excellent! Thank you for taking the time to replicate and report. I can tell you, the Engineers were talking about this report just this morning, so it got there attention!

    Is there anything else I can assist you with?

    ~

  • #5 / Aug 23, 2012 4:09pm

    fcb66

    11 posts

    Hi Dan,

    I think that covers it for now, I can get away with using the capitalisation until a fix is available.

    Thanks

  • #6 / Aug 24, 2012 3:46pm

    Dan Decker

    7338 posts

    Fantastic!

    If anything else crops up, just let us know.

    Cheers!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases