Control Web Panel

WebPanel => CentOS-WebPanel Bugs => Topic started by: andrewmlove on April 28, 2015, 01:53:28 PM

Title: file editor text areas treat back slashes incorrectly
Post by: andrewmlove on April 28, 2015, 01:53:28 PM
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