All the changes in this file created based on original patch for Drupal.7.57
https://cgit.drupalcode.org/drupal/rawdiff/?h=7.x&id=2266d2a83db50e2f97682d9a0fb8a18e2722cba5
There is no includes/request-sanitizer.inc file.
Open drupal root and call the command
cd /project/public_html
curl https://gist.githubusercontent.com/andriyun/2635c4c4f328317e87a7abe1ca7cb932/raw/b06bd1c1f67aef89a45d3dcb9cc617bfbeb7ca08/SA-CORE-2018-002-D7-partial.patch | patch -p1
- Open includes/bootstrap.inc
- Find code snippet lines ~ 2200 - 2650
// Initialize the configuration, including variables from settings.php.
drupal_settings_initialize();
- Add following 4 lines after
drupal_settings_initialize();
// Sanitize unsafe keys from the request.
require_once DRUPAL_ROOT . '/includes/request-sanitizer.inc';
DrupalRequestSanitizer::sanitize();