Skip to content

Commit

Permalink
Com_redirect: Differentiating utf8 old_url (#19734)
Browse files Browse the repository at this point in the history
  • Loading branch information
infograf768 authored and Michael Babker committed Feb 26, 2018
1 parent bfc2fdf commit 1c9eaad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion administrator/components/com_redirect/tables/link.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function check()
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from('#__redirect_links')
->where($db->quoteName('old_url') . ' = ' . $db->quote($this->old_url));
->where($db->quoteName('old_url') . ' = ' . $db->quote(rawurlencode($this->old_url)));
$db->setQuery($query);

$xid = (int) $db->loadResult();
Expand Down

0 comments on commit 1c9eaad

Please sign in to comment.