8
0

Merge pull request #154 from cjmaxik/patch-1

Add %8A-like character decoding for Russian-language URI
Dieser Commit ist enthalten in:
Denis Kisselev 2014-04-15 18:09:49 -07:00
Commit dcf28885b3

Datei anzeigen

@ -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);