Skip to content

Commit

Permalink
prepared sql
Browse files Browse the repository at this point in the history
  • Loading branch information
alikon committed Jul 3, 2019
1 parent cd94e63 commit f80eaba
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions administrator/components/com_redirect/Table/LinkTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,9 @@ public function check()
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->select($db->quoteName('old_url'))
->from('#__redirect_links')
->where($db->quoteName('old_url') . ' = ' . $db->quote($this->old_url));
->from($db->quoteName('#__redirect_links'))
->where($db->quoteName('old_url') . ' = :url')
->bind(':url', $this->old_url);
$db->setQuery($query);
$urls = $db->loadAssocList();

Expand Down

0 comments on commit f80eaba

Please sign in to comment.