diff --git a/system/admin/editor/js/Markdown.Editor.js b/system/admin/editor/js/Markdown.Editor.js index d9060db5..814306aa 100644 --- a/system/admin/editor/js/Markdown.Editor.js +++ b/system/admin/editor/js/Markdown.Editor.js @@ -1800,11 +1800,12 @@ // the first bracket could then not act as the "not a backslash" for the second. chunk.selection = (" " + chunk.selection).replace(/([^\\](?:\\\\)*)(?=[[\]])/g, "$1\\").substr(1); - var linkDef = " [999]: " + properlyEncoded(link); + // var linkDef = " [999]: " + properlyEncoded(link); - var num = that.addLinkDef(chunk, linkDef); + // var num = that.addLinkDef(chunk, linkDef); chunk.startTag = isImage ? "![" : "["; - chunk.endTag = "][" + num + "]"; + // chunk.endTag = "][" + num + "]"; + chunk.endTag = "](" + properlyEncoded(link) + ")"; if (!chunk.selection) { if (isImage) { diff --git a/upload.php b/upload.php index 70a0f3e2..ab4fbc41 100644 --- a/upload.php +++ b/upload.php @@ -12,7 +12,7 @@ date_default_timezone_set('Asia/Jakarta'); } -$whitelist = array('jpg', 'jpeg', 'jfif', 'pjpeg', 'pjp', 'png', 'gif'); +$whitelist = array('jpg', 'jpeg', 'jfif', 'pjpeg', 'pjp', 'png', 'gif', 'webp'); $name = null; $dir = 'content/images/'; $error = null;