mirror of
https://github.com/alexankitty/Myrient-Search-Engine.git
synced 2026-01-15 16:33:15 -03:00
base64 encode settings before sending to server
This commit is contained in:
@@ -73,7 +73,8 @@ app.get('/', function(req, res) {
|
||||
|
||||
app.get('/search', async function(req, res) {
|
||||
let query = req.query.q ? req.query.q : ''
|
||||
let settings = req.query.s ? JSON.parse(req.query.s) : defaultSettings
|
||||
let settings = req.query.s ? JSON.parse(atob(req.query.s)) : defaultSettings
|
||||
console.log(settings)
|
||||
if(!settings.combineWith){
|
||||
delete settings.combineWith //remove if unset to avoid crashing
|
||||
}
|
||||
|
||||
@@ -25,6 +25,6 @@ _ / / / _ /_/ /_ / _ / / __/ / / / /_
|
||||
<script>
|
||||
settingStore = localStorage.getItem('settings')
|
||||
if(typeof settingStore == 'string'){
|
||||
document.getElementById('searchSettings').value = settingStore
|
||||
document.getElementById('searchSettings').value = btoa(settingStore)
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user