New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

file editor text areas treat back slashes incorrectly

Started by andrewmlove, April 28, 2015, 01:53:28 PM

Previous topic - Next topic

andrewmlove

I'm editing my vhost templates.

I'm wanting to add a regex in a rewrite condition where the regex contains an escaped character eg:

   example\.com

When I save the template, the backslash disappears.  (Presumably the cwp editor is itself interpreting it as an escape character.)

I can get round this initially by doubling the backslash, eg:

  example\\.com

But of course, if I save twice, they both disappear.

Could you please fix this?

Thanks