Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjnew-gh <github@hazelden.ca>2021-05-18 04:31:19 +0300
committerjnew-gh <github@hazelden.ca>2021-05-18 04:31:19 +0300
commit559e94749373c1f9c4451f8389b8d6e68bcc1199 (patch)
treecf9ffe773cbd84af673ab580346e27dfa5fad872
parent6933b8deed7e4cf9107fd23cb8585362c5cb650c (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.php2
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("/'/", "&#39;", $cookie_options[$option_name]). "'";
} else {
$value = "";
}