edit: force paste as plain text
[minimedit.git] / edit.php
index 398581e1e7c6ffbf3578e6b0296f63aa1b844af8..657c2790e570a841011790204097be7170ab2e4d 100644 (file)
--- a/edit.php
+++ b/edit.php
@@ -14,8 +14,8 @@ $filename = preg_replace('/(?:\.html)?$/', '.html', ltrim($_POST['page'], '/'),
 if (file_exists($filename) and !is_writable($filename))
        abort('403 input error', "ongeldige bestandsnaam: $filename");
 
-$prepend = '<!--#include virtual="common.html" -->'."\n\n";
-$append  = "\n".'<!--#include virtual="footer.html" -->'."\n";
+$prepend = '<!--#include virtual="/common.html" -->'."\n\n";
+$append  = "\n".'<!--#include virtual="/footer.html" -->'."\n";
 $upload = $_POST['body'];
 
 if (!$upload)