diff options
author | jnew-gh <github@hazelden.ca> | 2021-05-18 04:31:19 +0300 |
---|---|---|
committer | jnew-gh <github@hazelden.ca> | 2021-05-18 04:31:19 +0300 |
commit | 559e94749373c1f9c4451f8389b8d6e68bcc1199 (patch) | |
tree | cf9ffe773cbd84af673ab580346e27dfa5fad872 | |
parent | 6933b8deed7e4cf9107fd23cb8585362c5cb650c (diff) |
Replace single quote with HTML apostrophe
In case someone wants to use an apostrophe to shorten the year to 2 digits
-rw-r--r-- | dmarcts-report-viewer-options.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dmarcts-report-viewer-options.php b/dmarcts-report-viewer-options.php index 7aed408..1f3dd5e 100644 --- a/dmarcts-report-viewer-options.php +++ b/dmarcts-report-viewer-options.php @@ -140,7 +140,7 @@ function create_input_text($option_name, $option = array()) { $values = $option["option_values"]; if (isset($cookie_options[$option_name]) ) { - $value = "value='" . $cookie_options[$option_name] . "'"; + $value = "value='" . preg_replace("/'/", "'", $cookie_options[$option_name]). "'"; } else { $value = ""; } |