[-] BO : fix #PSTEST-1114 - unrecognized chars in e-mail

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@14385 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
tDidierjean
2012-03-30 13:42:50 +00:00
parent 16c232ed52
commit e774ee6ab1
4 changed files with 15 additions and 15 deletions
@@ -25,17 +25,16 @@
*}
<script type="text/javascript">
{if $product->is_virtual}
$('#virtual_good_attributes').show();
{else}
$('#virtual_good_attributes').hide();
{/if}
var msg_combination_1 = '{l s='Please choose an attribute'}';
var msg_combination_2 = '{l s='Please choose a value'}';
var msg_combination_3 = '{l s='You can only add one combination per type of attribute'}';
var msg_new_combination = '{l s='New combination'}';
$(document).ready(function(){
{if $product->is_virtual}
$('#virtual_good_attributes').show();
{/if}
var msg_combination_1 = '{l s='Please choose an attribute'}';
var msg_combination_2 = '{l s='Please choose a value'}';
var msg_combination_3 = '{l s='You can only add one combination per type of attribute'}';
var msg_new_combination = '{l s='New combination'}';
});
</script>
{if isset($product->id)}
@@ -221,7 +221,7 @@
<label for="virtual_product_name" class="t">{l s='Filename'}</label>
</td>
<td class="col-right">
<input type="text" id="virtual_product_name" name="virtual_product_name" style="width:200px" value="{$product->productDownload->display_filename|htmlentities}" />
<input type="text" id="virtual_product_name" name="virtual_product_name" style="width:200px" value="{$product->productDownload->display_filename|escape:'htmlall':'UTF-8'}" />
<p class="preference_description" name="help_box">{l s='The full filename with its extension (e.g. Book.pdf)'}</p>
</td>
</tr>
+4 -4
View File
@@ -478,7 +478,7 @@
'OrderSlipCore' => 'classes/order/OrderSlip.php',
'OrderState' => 'override/classes/order/OrderState.php',
'OrderStateCore' => 'classes/order/OrderState.php',
'PDF' => 'override/classes/PDF.php',
'PDF' => 'override/classes/pdf/PDF.php',
'PDFCore' => 'classes/pdf/PDF.php',
'PDFGenerator' => 'override/classes/pdf/PDFGenerator.php',
'PDFGeneratorCore' => 'classes/pdf/PDFGenerator.php',
@@ -560,7 +560,7 @@
'StateCore' => 'classes/State.php',
'StatisticsController' => 'override/controllers/front/StatisticsController.php',
'StatisticsControllerCore' => 'controllers/front/StatisticsController.php',
'Stock' => 'override/classes/Stock.php',
'Stock' => 'override/classes/stock/Stock.php',
'StockAvailable' => 'override/classes/stock/StockAvailable.php',
'StockAvailableCore' => 'classes/stock/StockAvailable.php',
'StockCore' => 'classes/stock/Stock.php',
@@ -571,9 +571,9 @@
'StockManagerInterface' => 'classes/stock/StockManagerInterface.php',
'StockManagerModule' => 'override/classes/stock/StockManagerModule.php',
'StockManagerModuleCore' => 'classes/stock/StockManagerModule.php',
'StockMvt' => 'override/classes/StockMvt.php',
'StockMvt' => 'override/classes/stock/StockMvt.php',
'StockMvtCore' => 'classes/stock/StockMvt.php',
'StockMvtReason' => 'override/classes/StockMvtReason.php',
'StockMvtReason' => 'override/classes/stock/StockMvtReason.php',
'StockMvtReasonCore' => 'classes/stock/StockMvtReason.php',
'StockMvtWS' => 'override/classes/stock/StockMvtWS.php',
'StockMvtWSCore' => 'classes/stock/StockMvtWS.php',
+1
View File
@@ -615,6 +615,7 @@ class ToolsCore
public static function htmlentitiesUTF8($string, $type = ENT_QUOTES)
{
if (is_array($string))
return array_map(array('Tools', 'htmlentitiesUTF8'), $string);
return htmlentities($string, $type, 'utf-8');
}