aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-19 03:45:59 +0000
committerpetko <petko@524c5546-5005-0410-9a3e-e25e191bd360>2024-08-19 03:45:59 +0000
commit29db6f17f9c9e408f3d71eba24d0ff5844410df4 (patch)
tree77e4fdb3947c5d850e371e1a9a91c521cbc08e49
parent2a7c4b67bf7faaf9036717d4050052dff3795a8e (diff)
downloadpmwiki.svn-29db6f17f9c9e408f3d71eba24d0ff5844410df4.tar.bz2
Add $EnableObfuscateEmails, $EnablePreserveLineBreaks.
git-svn-id: svn://pmwiki.org/pmwiki/trunk@4781 524c5546-5005-0410-9a3e-e25e191bd360
-rw-r--r--scripts/stdconfig.php2
-rw-r--r--scripts/stdmarkup.php6
2 files changed, 7 insertions, 1 deletions
diff --git a/scripts/stdconfig.php b/scripts/stdconfig.php
index 058cd6a0..6ba4f5ad 100644
--- a/scripts/stdconfig.php
+++ b/scripts/stdconfig.php
@@ -45,7 +45,7 @@ while(count($PostConfig)) {
if (IsEnabled($EnableCommonEnhancements,0)) {
# Security + review changes
SDV($EnableCookieHTTPOnly, 1);
- SDVA($LinkFunctions, array('mailto:' => 'ObfuscateLinkIMap'));
+ SDV($EnableObfuscateEmails, 1);
SDV($EnableRCDiffBytes, 1);
SDV($EnableLocalTimes, 3);
diff --git a/scripts/stdmarkup.php b/scripts/stdmarkup.php
index 4abff4d8..2b46faaf 100644
--- a/scripts/stdmarkup.php
+++ b/scripts/stdmarkup.php
@@ -18,6 +18,12 @@
Script maintained by Petko YOTOV www.pmwiki.org/petko
*/
+## for simpler configuration
+if (IsEnabled($EnableObfuscateEmails, 0))
+ $LinkFunctions['mailto:'] = 'ObfuscateLinkIMap';
+if (IsEnabled($EnablePreserveLineBreaks, 0))
+ $HTMLPNewline = '<br/>';
+
## first we preserve text in [=...=] and [@...@]
function PreserveText($sigil, $text, $lead) {
if ($sigil=='=') return $lead.Keep($text);