From ca6417995023067a09453c88759b59f975e64e71 Mon Sep 17 00:00:00 2001 From: Damien Metzger Date: Thu, 6 Jun 2013 15:27:14 +0200 Subject: [PATCH 01/44] // W3C --- .../controllers/access/helpers/form/form.tpl | 6 +-- .../employees/helpers/form/form.tpl | 2 +- .../information/helpers/view/view.tpl | 2 +- .../template/controllers/orders/form.tpl | 38 +++++++++---------- .../controllers/orders/helpers/view/view.tpl | 2 +- .../controllers/products/informations.tpl | 2 +- .../template/controllers/products/prices.tpl | 4 +- .../template/controllers/shop/tree.tpl | 2 +- .../templates/front/payment_execution.tpl | 4 +- .../bankwire/views/templates/hook/payment.tpl | 2 +- .../views/templates/hook/payment_return.tpl | 4 +- .../blockbestsellers-home.tpl | 4 +- modules/blockbestsellers/blockbestsellers.tpl | 6 +-- modules/blockcart/blockcart-json.tpl | 2 +- modules/blockcart/blockcart.tpl | 14 +++---- modules/blockcms/blockcms.tpl | 14 +++---- .../blockmanufacturer/blockmanufacturer.tpl | 6 +-- modules/blockmyaccount/blockmyaccount.tpl | 16 ++++---- .../blockmyaccountfooter.tpl | 14 +++---- modules/blocknewproducts/blocknewproducts.tpl | 6 +-- .../views/templates/hook/blocknewsletter.tpl | 2 +- modules/blockpaymentlogo/blockpaymentlogo.tpl | 2 +- .../blockpermanentlinks-footer.tpl | 8 ++-- .../blockpermanentlinks-header.tpl | 4 +- .../blockpermanentlinks.tpl | 4 +- modules/blocksearch/blocksearch-top.tpl | 4 +- modules/blocksearch/blocksearch.tpl | 2 +- modules/blockspecials/blockspecials.tpl | 6 +-- modules/blockstore/blockstore.tpl | 6 +-- modules/blocksupplier/blocksupplier.tpl | 6 +-- modules/blocktags/blocktags.tpl | 2 +- modules/blocktopmenu/blocktopmenu.tpl | 2 +- modules/blockuserinfo/blockuserinfo.tpl | 10 ++--- modules/blockwishlist/blockwishlist-ajax.tpl | 4 +- modules/blockwishlist/blockwishlist.tpl | 4 +- modules/blockwishlist/managewishlist.tpl | 8 ++-- modules/blockwishlist/view.tpl | 10 ++--- .../views/templates/front/mywishlist.tpl | 4 +- .../views/templates/front/validation.tpl | 2 +- .../views/templates/hook/confirmation.tpl | 2 +- .../views/templates/hook/payment.tpl | 2 +- .../templates/front/payment_execution.tpl | 4 +- .../cheque/views/templates/hook/payment.tpl | 2 +- .../views/templates/hook/payment_return.tpl | 4 +- modules/editorial/editorial.tpl | 2 +- .../front/favoriteproducts-account.tpl | 2 +- .../hook/favoriteproducts-header.tpl | 4 +- modules/homefeatured/homefeatured.tpl | 2 +- .../loyalty/views/templates/front/loyalty.tpl | 8 ++-- .../views/templates/hook/my-account.tpl | 2 +- .../templates/front/mailalerts-account.tpl | 10 ++--- .../views/templates/hook/my-account.tpl | 2 +- modules/productcomments/productcomments.tpl | 2 +- modules/productscategory/productscategory.tpl | 4 +- .../views/templates/front/program.tpl | 12 +++--- .../views/templates/hook/my-account.tpl | 2 +- .../views/templates/hook/shopping-cart.tpl | 2 +- modules/sendtoafriend/sendtoafriend-extra.tpl | 2 +- modules/sendtoafriend/sendtoafriend.tpl | 2 +- themes/default/404.tpl | 2 +- themes/default/address.tpl | 30 +++++++-------- themes/default/addresses.tpl | 12 +++--- themes/default/authentication.tpl | 12 +++--- themes/default/category.tpl | 4 +- themes/default/discount.tpl | 4 +- themes/default/guest-tracking.tpl | 4 +- themes/default/history.tpl | 16 ++++---- themes/default/identity.tpl | 6 +-- themes/default/mobile/404.tpl | 2 +- themes/default/mobile/address.tpl | 2 +- themes/default/mobile/addresses.tpl | 6 +-- .../default/mobile/authentication-choice.tpl | 6 +-- .../mobile/authentication-create-account.tpl | 2 +- .../default/mobile/category-product-list.tpl | 2 +- themes/default/mobile/discount.tpl | 2 +- themes/default/mobile/footer.tpl | 4 +- themes/default/mobile/header.tpl | 6 +-- themes/default/mobile/history.tpl | 6 +-- themes/default/mobile/identity.tpl | 4 +- themes/default/mobile/manufacturer.tpl | 2 +- themes/default/mobile/my-account.tpl | 14 +++---- themes/default/mobile/order-address.tpl | 18 ++++----- themes/default/mobile/order-carrier.tpl | 6 +-- .../mobile/order-detail-product-li.tpl | 4 +- themes/default/mobile/order-detail.tpl | 10 ++--- themes/default/mobile/order-follow.tpl | 10 ++--- themes/default/mobile/order-opc-address.tpl | 2 +- themes/default/mobile/order-opc-carrier.tpl | 2 +- themes/default/mobile/order-opc.tpl | 10 ++--- themes/default/mobile/order-payment.tpl | 8 ++-- themes/default/mobile/order-slip.tpl | 6 +-- themes/default/mobile/pages-list.tpl | 10 ++--- themes/default/mobile/pagination.tpl | 6 +-- themes/default/mobile/password.tpl | 2 +- .../default/mobile/product-desc-features.tpl | 4 +- themes/default/mobile/product-images.tpl | 4 +- themes/default/mobile/product.tpl | 4 +- .../mobile/shopping-cart-gift-line.tpl | 2 +- .../mobile/shopping-cart-product-line.tpl | 8 ++-- themes/default/mobile/shopping-cart.tpl | 10 ++--- themes/default/mobile/sitemap.tpl | 26 ++++++------- themes/default/mobile/supplier.tpl | 2 +- .../blockbestsellers-home.tpl | 4 +- .../blockbestsellers/blockbestsellers.tpl | 6 +-- .../default/modules/blockcart/blockcart.tpl | 14 +++---- themes/default/modules/blockcms/blockcms.tpl | 14 +++---- .../blockmanufacturer/blockmanufacturer.tpl | 6 +-- .../modules/blockmyaccount/blockmyaccount.tpl | 16 ++++---- .../blockmyaccountfooter.tpl | 14 +++---- .../blocknewproducts/blocknewproducts.tpl | 6 +-- .../blocknewsletter/blocknewsletter.tpl | 2 +- .../modules/blocksearch/blocksearch.tpl | 2 +- .../modules/blocksocial/blockspecials.tpl | 6 +-- .../modules/blockspecials/blockspecials.tpl | 6 +-- .../default/modules/blockstore/blockstore.tpl | 6 +-- .../modules/blocksupplier/blocksupplier.tpl | 6 +-- .../default/modules/blocktags/blocktags.tpl | 2 +- .../modules/blockwishlist/blockwishlist.tpl | 4 +- .../modules/homefeatured/homefeatured.tpl | 2 +- .../productcomments/productcomments.tpl | 2 +- themes/default/my-account.tpl | 14 +++---- .../default/order-address-multishipping.tpl | 12 +++--- themes/default/order-address-product-line.tpl | 8 ++-- themes/default/order-address.tpl | 18 ++++----- themes/default/order-carrier.tpl | 10 ++--- themes/default/order-confirmation.tpl | 8 ++-- themes/default/order-detail.tpl | 12 +++--- themes/default/order-follow.tpl | 12 +++--- themes/default/order-opc-new-account.tpl | 4 +- themes/default/order-opc.tpl | 10 ++--- themes/default/order-payment.tpl | 8 ++-- themes/default/order-return.tpl | 6 +-- themes/default/order-slip.tpl | 10 ++--- themes/default/order-steps.tpl | 8 ++-- themes/default/pagination.tpl | 22 +++++------ themes/default/password.tpl | 4 +- themes/default/product-compare.tpl | 2 +- themes/default/product-list.tpl | 6 +-- themes/default/product.tpl | 20 +++++----- themes/default/products-comparison.tpl | 6 +-- themes/default/scenes.tpl | 2 +- themes/default/shopping-cart-product-line.tpl | 8 ++-- themes/default/shopping-cart.tpl | 8 ++-- themes/default/sitemap.tpl | 28 +++++++------- 144 files changed, 489 insertions(+), 489 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/access/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/access/helpers/form/form.tpl index ef97458aa..3036068fd 100644 --- a/admin-dev/themes/default/template/controllers/access/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/access/helpers/form/form.tpl @@ -52,7 +52,7 @@ checked = enabled ? 'checked': ''; $(this).parent().parent().parent().find('.child-'+id_tab+' input[type=checkbox]').attr('checked', checked); $.ajax({ - url: "{$link->getAdminLink('AdminAccess')}", + url: "{$link->getAdminLink('AdminAccess')|escape:'html'}", cache: false, data : { ajaxMode : '1', @@ -85,7 +85,7 @@ perfect_access_js_gestion(this, perm, id_tab, tabsize, tabnumber, table); $.ajax({ - url: "{$link->getAdminLink('AdminAccess')}", + url: "{$link->getAdminLink('AdminAccess')|escape:'html'}", cache: false, data : { ajaxMode : '1', @@ -134,7 +134,7 @@ }); $.ajax({ - url: "{$link->getAdminLink('AdminAccess')}", + url: "{$link->getAdminLink('AdminAccess')|escape:'html'}", cache: false, data : { ajaxMode: '1', diff --git a/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl b/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl index 395e949d0..38830a614 100644 --- a/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl +++ b/admin-dev/themes/default/template/controllers/employees/helpers/form/form.tpl @@ -60,7 +60,7 @@ ifSuperAdmin($(this)); $.ajax({ - url: "{$link->getAdminLink('AdminEmployees')}", + url: "{$link->getAdminLink('AdminEmployees')|escape:'html'}", cache: false, data : { ajax : '1', diff --git a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl index 782c4b834..91375363a 100644 --- a/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/information/helpers/view/view.tpl @@ -32,7 +32,7 @@ { $.ajax({ type: 'GET', - url: '{$link->getAdminLink('AdminInformation')}', + url: '{$link->getAdminLink('AdminInformation')|escape:'html'}', data: { 'action': 'checkFiles', 'ajax': 1 diff --git a/admin-dev/themes/default/template/controllers/orders/form.tpl b/admin-dev/themes/default/template/controllers/orders/form.tpl index 280faff39..334cf4c9b 100755 --- a/admin-dev/themes/default/template/controllers/orders/form.tpl +++ b/admin-dev/themes/default/template/controllers/orders/form.tpl @@ -28,7 +28,7 @@ var changed_shipping_price = false; var shipping_price_selected_carrier = ''; var current_index = '{$current}&token={$token}'; - var admin_cart_link = '{$link->getAdminLink('AdminCarts')}'; + var admin_cart_link = '{$link->getAdminLink('AdminCarts')|escape:'html'}'; var cart_quantity = new Array(); var currencies = new Array(); var id_currency = ''; @@ -100,7 +100,7 @@ $('#show_old_carts').click(); $('#payment_module_name').change(); $.ajaxSetup({ type:"post" }); - $("#voucher").autocomplete('{$link->getAdminLink('AdminCartRules')}', { + $("#voucher").autocomplete('{$link->getAdminLink('AdminCartRules')|escape:'html'}', { minChars: 3, max: 15, width: 250, @@ -157,7 +157,7 @@ free_shipping = 1; $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -217,7 +217,7 @@ e.preventDefault(); $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -254,7 +254,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -288,7 +288,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -324,7 +324,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -351,7 +351,7 @@ $('#id_cart').val(id_cart); $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: false, dataType: "json", data : { @@ -378,7 +378,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -401,7 +401,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -426,7 +426,7 @@ { $.ajax({ type:"POST", - url : "{$link->getAdminLink('AdminOrders')}", + url : "{$link->getAdminLink('AdminOrders')|escape:'html'}", async: true, dataType: "json", data : { @@ -468,7 +468,7 @@ $('#new_address').attr('href', address_link.replace(/id_customer=[0-9]+/, 'id_customer='+id_customer)); $.ajax({ type:"POST", - url : "{$link->getAdminLink('AdminCarts')}", + url : "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: false, dataType: "json", data : { @@ -534,7 +534,7 @@ $('#products_part').show(); $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminOrders')}", + url: "{$link->getAdminLink('AdminOrders')|escape:'html'}", async: true, dataType: "json", data : { @@ -766,7 +766,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -822,7 +822,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -845,7 +845,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -868,7 +868,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { @@ -899,7 +899,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminOrders')}", + url: "{$link->getAdminLink('AdminOrders')|escape:'html'}", async: true, dataType: "json", data : { @@ -957,7 +957,7 @@ { $.ajax({ type:"POST", - url: "{$link->getAdminLink('AdminCarts')}", + url: "{$link->getAdminLink('AdminCarts')|escape:'html'}", async: true, dataType: "json", data : { diff --git a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl index 01e70bc85..e1e546126 100755 --- a/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl +++ b/admin-dev/themes/default/template/controllers/orders/helpers/view/view.tpl @@ -27,7 +27,7 @@ {block name="override_tpl"} diff --git a/modules/blockpermanentlinks/blockpermanentlinks.tpl b/modules/blockpermanentlinks/blockpermanentlinks.tpl index 09d2ddb9a..7e0766f66 100644 --- a/modules/blockpermanentlinks/blockpermanentlinks.tpl +++ b/modules/blockpermanentlinks/blockpermanentlinks.tpl @@ -27,11 +27,11 @@