Bugfix: Fix edit button for pages that contain quotes.
This commit is contained in:
parent
2861731c83
commit
9ef2cfce32
|
@ -1277,7 +1277,7 @@ class page_renderer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Output the item as a link to a url
|
// Output the item as a link to a url
|
||||||
$result .= "<span><a href='" . str_replace("{page}", $env->page, $item[1]) . "'>$item[0]</a></span>";
|
$result .= "<span><a href='" . str_replace("{page}", rawurlencode($env->page), $item[1]) . "'>$item[0]</a></span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
2
core.php
2
core.php
|
@ -976,7 +976,7 @@ class page_renderer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Output the item as a link to a url
|
// Output the item as a link to a url
|
||||||
$result .= "<span><a href='" . str_replace("{page}", $env->page, $item[1]) . "'>$item[0]</a></span>";
|
$result .= "<span><a href='" . str_replace("{page}", rawurlencode($env->page), $item[1]) . "'>$item[0]</a></span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue