mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-14 09:12:58 -07:00
Merge pull request #345 from drzoidberg33/security-fixes
Security fixes
This commit is contained in:
commit
7546c7ef42
2 changed files with 10 additions and 10 deletions
|
@ -25,7 +25,7 @@ from plexpy import helpers
|
||||||
% endif
|
% endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'button':
|
% elif item['input_type'] == 'button':
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
@ -34,14 +34,14 @@ from plexpy import helpers
|
||||||
<input type="${item['input_type']}" class="btn btn-bright" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
<input type="${item['input_type']}" class="btn btn-bright" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'checkbox':
|
% elif item['input_type'] == 'checkbox':
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" data-id="${item['name']}" class="checkboxes" value="1" ${helpers.checked(item['value'])}> ${item['label']}
|
<input type="checkbox" data-id="${item['name']}" class="checkboxes" value="1" ${helpers.checked(item['value'])}> ${item['label']}
|
||||||
</label>
|
</label>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
<input type="hidden" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
<input type="hidden" id="${item['name']}" name="${item['name']}" value="${item['value']}">
|
||||||
</div>
|
</div>
|
||||||
% elif item['input_type'] == 'select':
|
% elif item['input_type'] == 'select':
|
||||||
|
@ -60,7 +60,7 @@ from plexpy import helpers
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p class="help-block">${item['description']}</p>
|
<p class="help-block">${item['description'] | n}</p>
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
|
|
|
@ -342,13 +342,13 @@ class PlexTV(object):
|
||||||
|
|
||||||
rating_key = clean_uri.rpartition('%2F')[-1]
|
rating_key = clean_uri.rpartition('%2F')[-1]
|
||||||
|
|
||||||
sync_details = {"device_name": device_name,
|
sync_details = {"device_name": helpers.sanitize(device_name),
|
||||||
"platform": device_platform,
|
"platform": helpers.sanitize(device_platform),
|
||||||
"username": device_username,
|
"username": helpers.sanitize(device_username),
|
||||||
"friendly_name": device_friendly_name,
|
"friendly_name": helpers.sanitize(device_friendly_name),
|
||||||
"user_id": device_user_id,
|
"user_id": device_user_id,
|
||||||
"root_title": sync_root_title,
|
"root_title": helpers.sanitize(sync_root_title),
|
||||||
"title": sync_title,
|
"title": helpers.sanitize(sync_title),
|
||||||
"metadata_type": sync_metadata_type,
|
"metadata_type": sync_metadata_type,
|
||||||
"content_type": sync_content_type,
|
"content_type": sync_content_type,
|
||||||
"rating_key": rating_key,
|
"rating_key": rating_key,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue