View source
<?php
function perimeter_update_8201() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('perimeter.settings');
$not_found_exception_patterns = $config
->get('not_found_exception_patterns');
if (empty($not_found_exception_patterns)) {
$config
->set('not_found_exception_patterns', [
'/.*\\.aspx/',
'/.*\\.asp/',
'/.*\\.jsp/',
'/\\/blog_edit\\.php/',
'/\\/blogs\\.php/',
'/\\/wp-admin.*/',
'/\\/wp-login.*/',
'/\\/my_blogs/',
'/\\/system\\/.*\\.php/',
'/.*systopice.*/',
'/.*login.json/',
'/\\/episerver.*/',
]);
$config
->save(TRUE);
}
}