Commit 78767013 authored by lphuberdeau's avatar lphuberdeau

[FIX] Unencoded title in URL breaks link generation

parent 8e7021d2
......@@ -48,7 +48,7 @@ if ($output["data"] == "EMPTY") {
'print' => true,
'is_html' => true,
));
$data['sefurl'] = filter_out_sefurl(sprintf($readrepl, $data['postId']) , $smarty, 'blogpost', $data['title']);
$data['sefurl'] = filter_out_sefurl(sprintf($readrepl, $data['postId']) , $smarty, 'blogpost', urlencode($data['title']));
$tmp[] = $data;
}
$changes["data"] = $tmp;
......
......@@ -53,7 +53,7 @@ if ($output["data"] == "EMPTY") {
$data["$descId"] = $tikilib->parse_data($data[$descId], array(
'print' => true
));
$data['sefurl'] = filter_out_sefurl(sprintf($readrepl, $data['postId'], $data['blogId']) , $smarty, 'blogpost', $data['title']);
$data['sefurl'] = filter_out_sefurl(sprintf($readrepl, $data['postId'], $data['blogId']) , $smarty, 'blogpost', urlencode($data['title']));
$tmp[] = $data;
}
$changes["data"] = $tmp;
......
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