Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

Commit

Permalink
ignore query string
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzmg committed Apr 10, 2019
1 parent 78ba16f commit 1ef6dba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/modules/short_urls/classes/ShortURLs.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function checkForShortURL()
return;

// check if we have one or more Short URLs
if( ( $objShortURL = \ShortURLsModel::findActiveByName( str_replace('app_dev.php/', '', \Environment::get('request')) ) ) !== null )
if( ( $objShortURL = \ShortURLsModel::findActiveByName( str_replace('app_dev.php/', '', strtok(\Environment::get('request'),'?')) ) ) !== null )
{
// go through each short URL
while( $objShortURL->next() )
Expand Down

0 comments on commit 1ef6dba

Please sign in to comment.