Skip to content

Commit

Permalink
update Content-Security-Policy
Browse files Browse the repository at this point in the history
  • Loading branch information
r23 committed Oct 17, 2023
1 parent eb8a1a9 commit 7f31003
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion myoos/admin/categories.php
Expand Up @@ -1019,7 +1019,7 @@
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'categories_description[<?php echo $aLanguages[$i]['id']; ?>]');
</script>
<?php
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/categories_panorama.php
Expand Up @@ -694,7 +694,7 @@

<div id="panorama"></div>

<script>
<script nonce="<?php echo NONCE; ?>">
pannellum.viewer('panorama', {
"type": "equirectangular",
"panorama": "<?php echo OOS_HTTPS_SERVER . OOS_SHOP . OOS_IMAGES . 'panoramas/' . oos_output_string($panorama['scene_image']); ?>",
Expand Down Expand Up @@ -1060,7 +1060,7 @@
<div class="col-lg-10">

<div id="panorama_hot"></div>
<script>
<script nonce="<?php echo NONCE; ?>">
pannellum.viewer('panorama_hot', {
"type": "equirectangular",
"panorama": "<?php echo OOS_HTTPS_SERVER . OOS_SHOP . OOS_IMAGES . 'panoramas/' . oos_output_string($panorama['scene_image']); ?>",
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/customers.php
Expand Up @@ -276,7 +276,7 @@

if ($action == 'edit') {
?>
<script>
<script nonce="<?php echo NONCE; ?>">
function resetStateText(theForm) {
theForm.entry_state.value = '';
if (theForm.entry_zone_id.options.length > 1) {
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/geo_zones.php
Expand Up @@ -131,7 +131,7 @@ function oosGetGeoZoneName($geo_zone_id)

if (isset($_GET['zID']) && (($saction == 'edit') || ($saction == 'new'))) {
?>
<script>
<script nonce="<?php echo NONCE; ?>">
function resetZoneSelected(theForm) {
if (theForm.state.value != '') {
theForm.zone_id.selectedIndex = '0';
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/includes/account_check.js.php
Expand Up @@ -26,7 +26,7 @@

?>

<script>
<script nonce="<?php echo NONCE; ?>">
function validateForm() {
let p,z,xEmail,errors='',dbEmail,result=0,i;

Expand Down Expand Up @@ -95,7 +95,7 @@ function checkSub(obj) {
} else {
?>

<script>
<script nonce="<?php echo NONCE; ?>">
function validateForm() {
let p,z,xEmail,errors='',dbEmail,result=0,i;

Expand Down
Expand Up @@ -52,7 +52,7 @@ public function choose_audience()
$products_result->MoveNext();
}

$choose_audience_string = '<script>
$choose_audience_string = '<script nonce="' . NONCE . '">'
function mover(move) {
if (move == \'remove\') {
for (x=0; x<(document.notifications.products.length); x++) {
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/information.php
Expand Up @@ -256,7 +256,7 @@
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'information_description[<?php echo $aLanguages[$i]['id']; ?>]');
</script>
<?php
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/product_model_viewer.php
Expand Up @@ -396,7 +396,7 @@
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'model_viewer_description_<?php echo $nCounter . '_' . $aLanguages[$i]['id']; ?>');
</script>
<?php
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/product_video.php
Expand Up @@ -403,7 +403,7 @@
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'video_description_<?php echo $nCounter . '_' . $aLanguages[$i]['id']; ?>');
</script>
<?php
Expand Down
12 changes: 6 additions & 6 deletions myoos/admin/products.php
Expand Up @@ -486,7 +486,7 @@
} ?>
<script nonce="<?php echo NONCE; ?>" src="js/ckeditor/ckeditor.js"></script>

<script>
<script nonce="<?php echo NONCE; ?>">
let tax_rates = new Array();
<?php
$n = is_countable($tax_class_array) ? count($tax_class_array) : 0;
Expand Down Expand Up @@ -715,7 +715,7 @@ function calcBasePriceFactor() {
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'products_description_<?php echo $aLanguages[$i]['id']; ?>');
</script>

Expand All @@ -737,7 +737,7 @@ function calcBasePriceFactor() {
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'products_short_description_<?php echo $aLanguages[$i]['id']; ?>');
</script>

Expand All @@ -759,7 +759,7 @@ function calcBasePriceFactor() {
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
CKEDITOR.replace( 'products_essential_characteristics_<?php echo $aLanguages[$i]['id']; ?>');
</script>

Expand Down Expand Up @@ -947,7 +947,7 @@ function calcBasePriceFactor() {
</div>
</div>
</fieldset>
<script>
<script nonce="<?php echo NONCE; ?>">
updateWithTax();
</script>

Expand Down Expand Up @@ -1207,7 +1207,7 @@ function calcBasePriceFactor() {
</div>

<div class="tab-pane" id="picture" role="tabpanel">
<script>
<script nonce="<?php echo NONCE; ?>">
window.totalinputs = 3;
function addUploadBoxes(placeholderid, copyfromid, num) {
for (i = 0; i < num; i++) {
Expand Down
4 changes: 2 additions & 2 deletions myoos/admin/products_attributes.php
Expand Up @@ -485,7 +485,7 @@

require 'includes/header.php';
?>
<script>
<script nonce="<?php echo NONCE; ?>">
function go_option() {
if (document.option_order_by.selected.options[document.option_order_by.selected.selectedIndex].value != "none") {
location = "<?php echo oos_href_link_admin($aContents['products_attributes'], 'option_page=' . (isset($_GET['option_page']) ? intval($_GET['option_page']) : 1)); ?>&option_order_by="+document.option_order_by.selected.options[document.option_order_by.selected.selectedIndex].value;
Expand Down Expand Up @@ -987,7 +987,7 @@ function go_option() {
$form_action = 'add_product_attributes';
}
?>
<script>
<script nonce="<?php echo NONCE; ?>">

function doRound(x, places) {
return Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
Expand Down
2 changes: 1 addition & 1 deletion myoos/admin/specials.php
Expand Up @@ -328,7 +328,7 @@ function oos_set_specials_status($specials_id, $status)
}

echo "\n";
echo '<script>' . "\n";
echo '<script nonce="' . NONCE . '">' . "\n";
echo 'let taxRate = ' . $tax['tax_rate'] . ';' . "\n"; ?>
function doRound(x, places) {
num = Math.round(x * Math.pow(10, places)) / Math.pow(10, places);
Expand Down

0 comments on commit 7f31003

Please sign in to comment.