Update index.php
This commit is contained in:
parent
cd29e1224d
commit
7a093dab14
@ -96,6 +96,7 @@ build_tree();
|
|||||||
$remove = array($base_path . '/');
|
$remove = array($base_path . '/');
|
||||||
if (!$options['clean_urls']) $remove[] = 'index.php?';
|
if (!$options['clean_urls']) $remove[] = 'index.php?';
|
||||||
$request = str_replace($remove, "", $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
$request = str_replace($remove, "", $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
|
||||||
|
$request = rawurldecode($request);
|
||||||
if (isset($_POST['markdown']) && $options['file_editor'])
|
if (isset($_POST['markdown']) && $options['file_editor'])
|
||||||
file_put_contents(clean_url_to_file($request), $_POST['markdown']);
|
file_put_contents(clean_url_to_file($request), $_POST['markdown']);
|
||||||
echo generate_live($request);
|
echo generate_live($request);
|
||||||
|
Loading…
Reference in New Issue
Block a user