numero2 / contao-storelocator

Contao Plugin for managing stores (or in common address data) and providing a frontend-search based on geo data.
https://www.numero2.de/contao/erweiterungen/storelocator.html
GNU Lesser General Public License v3.0
13 stars 8 forks source link

Update system/modules/storelocator/ModuleStoreLocatorSearch.php #20

Closed Wusch closed 11 years ago

Wusch commented 11 years ago

Check if value of search is 1 because it's possible that other forms use a search var with an other value.

davidmaack commented 11 years ago

Why don´t you check for $this->Input->post('storelocator_search_name')? This is the searchvalue anyway and will be put into the redirect-url. So if this value is empty, the URL wirll contain a '//' and so search results will be found - or a wrong parameter will be used.

bennyborn commented 11 years ago

Fixed in 54b58f365e157b96ca76a953fc916292c23e2cf2