Skip to content

Commit

Permalink
added validation for repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehmood Asghar authored and Mehmood Asghar committed Jun 13, 2013
1 parent ad4beff commit 241f030
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions application/views/catalog_search/country_selection.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
<?php
//fix for UI tabs
$referer=$this->input->get("referer");
if (strpos($referer,site_url())===false)
$repo=$this->input->get("repo");
if (!$result=$this->repository_model->repository_exists($repo))
{
$referer=site_url('catalog');
if($repo!='central')
{
show_error('INVALID-PARAM');
}
}

$referer=site_url('catalog/'.$repo);
?>

<script>
Expand Down

0 comments on commit 241f030

Please sign in to comment.