Commit 179b2f56 authored by sylvieg's avatar sylvieg

[FIX]blog: proposed tag must be quoted if compound word

parent 17bf1b6c
......@@ -37,6 +37,9 @@ if (!isset($_REQUEST['tag']) && $prefs['freetags_preload_random_search'] == 'y')
$tag = $freetaglib->get_tag_suggestion('', 1);
if (!empty($tag[0])) {
$_REQUEST['tag'] = $tag[0];
if (strstr($tag[0], ' ')) {
$_REQUEST['tag'] = '"'.$_REQUEST['tag'].'"';
}
}
}
if (!isset($_REQUEST["sort_mode"])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment