RE: RequestHeader can not match single space char?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Balažic wrote:
> I have apache 2.4.7-1ubuntu4.9  (on Ubuntu 14.04.4 64bit) and while this
> works:
> RequestHeader edit Some-Header " M" "X"
> 
> This does not:
> RequestHeader edit Some-Header " " "X"
> 
> Am I missing something obvious?
> 
> The first one matches a pair of space and capital M and replaces them with X.
> The later does not seem to do anything (to the same test data).
> I also tried using "\s", but it also does not seem to work.

Pilot error!

edit replaces one occurence of the string, while edit* replaces all of them.
I had a long string with many spaces and missed that the first space was replaced and only noticed the others still being not replaced.

Over-and-out,
David

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux