Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8875774ddb |
No files matched your search
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## Unreleased
|
||||
|
||||
## 3.3.4 - 2020-11-16
|
||||
|
||||
### Fixed
|
||||
- non-ASCII characters in Server Timing headers
|
||||
|
||||
## 3.3.3 - 2020-03-11
|
||||
|
||||
### Fixed
|
||||
|
||||
@@ -5,7 +5,7 @@ Plugin Name: Laps
|
||||
Plugin URI: https://github.com/Rarst/laps
|
||||
Description: Light WordPress profiler.
|
||||
Author: Andrey “Rarst” Savchenko
|
||||
Version: 3.3.3
|
||||
Version: 3.3.4
|
||||
Author URI: https://www.rarst.net/
|
||||
Text Domain: laps
|
||||
Domain Path: /lang
|
||||
|
||||
@@ -68,7 +68,8 @@ class Server_Timing_Manager {
|
||||
}
|
||||
}
|
||||
|
||||
header( 'Server-Timing: ' . preg_replace( '/\R/', '', $header ) );
|
||||
// Sanitize to visible US ASCII character range (32-126).
|
||||
header( 'Server-Timing: ' . preg_replace( '/[^\x20-\x7E]/', '', $header ) );
|
||||
|
||||
return $input;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user