From 5e8d16df1a5d8eecef2eb7f02d2f7a56d342431d Mon Sep 17 00:00:00 2001 From: Alberto Lepe Date: Sat, 30 Nov 2019 10:56:48 +0900 Subject: [PATCH] [Customize] Links are replaced for constants. --- save.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/save.php b/save.php index 2f8e428f..bb20e731 100644 --- a/save.php +++ b/save.php @@ -20,6 +20,10 @@ function sanitizeFileName($fileName) // Clear edition attributes: $html = preg_replace("/contenteditable=[\"|'][^'\"]*[\"|']/", "", $html); $html = preg_replace("/spellcheckker=[\"|'][^'\"]*[\"|']/", "", $html); +// Replace links +foreach($LINKS as $name => $link) { + $html = str_replace('"'.$link.'"', "LINKS.$name", $html); +} $fileName = sanitizeFileName($_POST['fileName']); $pageID = str_replace(".php","", basename($fileName));