-
Notifications
You must be signed in to change notification settings - Fork 30
Recovery Reporting Changes #400
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
js/station.js
Outdated
|
|
||
| if (recovered) { | ||
| html += "<div><b>"+(recovery_info.recovered ? "Recovered by " : "Not Recovered by ")+recovery_info.recovered_by+"</u></b></div>"; | ||
| _recovered_text = recovery_info.recovered ? "Recovered by " : "Not Recovered by "; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is xss vuln here. We shouldn't put user data into innerhtml.
|
|
||
| html += "<div style='line-height:16px;position:relative;'>"; | ||
| html += "<div><b><u>"+r[i].serial+(r[i].recovered ? " Recovered by " : " Not Recovered by ")+r[i].recovered_by+"</u></b></div>"; | ||
| html += "<div><b><u>"+r[i].serial+(_recovered_text)+r[i].recovered_by+"</u></b></div>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same xss here
| } | ||
|
|
||
| html = "<div style='line-height:16px;position:relative;'>"; | ||
| html += "<div><b>"+recovery.serial+(recovery.recovered ? " Recovered" : " Not Recovered")+"</b></div>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
js/sondehub.js
Outdated
| html += "<div><b>TX Frequency: </b>" + data.tx_frequency + " MHz</div>"; | ||
| } else if (data.hasOwnProperty("frequency")) { | ||
| html += "<div><b>Frequency: </b>" + data.frequency + " MHz</div>"; | ||
| html += "<div><b>Frequency: </b>" + data.frequency.toFixed(3) + " MHz</div>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably here too
| } | ||
|
|
||
| var recovery_popup = true; | ||
| function recoveryPopup(){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to check if the map has loaded / recovery notice dom element exists yet before running this
index.template.html
Outdated
| </div> | ||
| <div class="row"> | ||
| <span> | ||
| <!--<input type="text" id="pr_notes" style="width: 140px;"/>--> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
js/sondehub.js
Outdated
| // Tile loads have changed. Update the store, and send the data. | ||
| last_sent_tile_loads = Object.assign({},tile_loads); | ||
| // // Check if the tile load count has changed. | ||
| // // Using JSON stringify is a bit of a hack, but appropriate for this kind of job. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should jsut remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
js/station.js
Outdated
| html += "<hr style='margin:0px;margin-top:5px'>"; | ||
| html += "</div>"; | ||
|
|
||
| html += "<div><b>Show Full Flight Path: <b><a href=\"javascript:showRecoveredMap('" + serial + "')\">" + serial + "</a></div>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missed this one for xss fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed this one, and a few others nearby
No description provided.