1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Won't Fix It's possible to create a template named as existing one

Discussion in 'Resolved Bug Reports' started by CyberAP, Jun 19, 2013.

  1. CyberAP

    CyberAP Well-Known Member

    To reproduce this bug:
    • Open your style templates list and hit 'Create new template'
    • Name the template 'xenforo.css' and leave it empty (or you can enter something, doesn't matter)
    • Save it and check how your forum looks now.
    Reverting template brings back the old one.

    Expected behaviour: I should get an error when trying to overwrite existing template.

    Bug appears in XF 1.1.5 and XF 1.2 beta 1.
  2. Mike

    Mike XenForo Developer Staff Member

    Basically, what you're doing is no different than when you create a newly customized template in a style by clicking on one of the existing templates - they basically get submitted the same way. (Note this only happens when the template in question doesn't explicitly exist in the style - if the template does exist and you try to create another, it will error.)

    Quite a lot to consider for a very edge case IMO.

Share This Page