Skip to content

Commit

Permalink
Don't quote the segment twice.. Fixes #4246
Browse files Browse the repository at this point in the history
  • Loading branch information
okonomiyaki3000 authored and piotr-cz committed Oct 6, 2014
1 parent 151bb1e commit 5d956c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/com_content/router.php
Expand Up @@ -423,7 +423,7 @@ public function parse(&$segments)
->select($db->quoteName('id'))
->from('#__content')
->where($db->quoteName('catid') . ' = ' . (int) $vars['catid'])
->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));
->where($db->quoteName('alias') . ' = ' . $db->quote($segment));
$db->setQuery($query);
$cid = $db->loadResult();
}
Expand Down

0 comments on commit 5d956c0

Please sign in to comment.