Skip to content

Commit

Permalink
[QSO] Fixes #557 Where /P wasn't handled properly
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbug committed Jan 29, 2021
1 parent b69c8e9 commit b8d2032
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions application/controllers/Logbook.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function json($callsign, $type, $band, $mode)
$this->load->model('user_model');
if(!$this->user_model->authorize($this->config->item('auth_mode'))) { return; }

// Convert - in Callsign to / Used for URL processing
$callsign = str_replace("-","/",$callsign);

// Check if callsign is an LOTW User
$lotw_member = "";
$lotw_file_name = "./updates/lotw_users.csv";
Expand Down
8 changes: 6 additions & 2 deletions application/views/interface_assets/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<script src="<?php echo base_url() ;?>assets/js/sections/notes.js"></script>
<?php } ?>

<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datatables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/datatables.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/dataTables.buttons.min.js"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>assets/js/buttons.html5.min.js"></script>
<script type="text/javascript" src="<?php echo base_url();?>assets/js/selectize.js"></script>
Expand Down Expand Up @@ -781,8 +781,12 @@ function changebadge(entityname) {
var json_mode = $("#mode").val();
}

var find_callsign = $(this).val().toUpperCase();

$.getJSON('logbook/json/' + $(this).val().toUpperCase() + '/' + sat_type + '/' + json_band + '/' + json_mode, function(result)
find_callsign.replace(/\//g, "-");

// Replace / in a callsign with - to stop urls breaking
$.getJSON('logbook/json/' + find_callsign.replace(/\//g, "-") + '/' + sat_type + '/' + json_band + '/' + json_mode, function(result)
{
//$('#country').val(result); lotw_info
if(result.dxcc.entity != undefined) {
Expand Down

0 comments on commit b8d2032

Please sign in to comment.