Update index.php

This commit is contained in:
Max Mekenya 2014-04-12 15:31:55 +11:00
parent cd29e1224d
commit 7a093dab14

View File

@ -96,6 +96,7 @@ build_tree();
$remove = array($base_path . '/');
if (!$options['clean_urls']) $remove[] = 'index.php?';
$request = str_replace($remove, "", $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
$request = rawurldecode($request);
if (isset($_POST['markdown']) && $options['file_editor'])
file_put_contents(clean_url_to_file($request), $_POST['markdown']);
echo generate_live($request);