magic_quotes_gpc
が に設定されている場合、Magento はアポストロフィをエスケープしていますoff
。に設定magic_quotes_gpc
するとon
、Magento はスラッシュの挿入を停止します。完全に後ろ向きです。
Magento にアポストロフィをエスケープさせることはできませんが、自分のサイトの他の部分 (vBulletin フォーラム、Wordpress ブログなど) に影響を与える可能性があるため、magic_quotes_gpc
設定したくありません。on
注意すべき点 - Magento は常にこのように動作していたわけではなく、今日始まったばかりです。
編集: CMS ページの 1 つのレイアウト更新 XML に次のコードを追加した後に、動作が開始されました。
<!--<reference name="content">
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page"><action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action></block>
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new"><action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action></block>
<block type="reports/product_compared" name="home.reports.product.compared" template="reports/home_product_compared.phtml" after="product_viewed"><action method="addPriceBlockType"><type>bundle</type><block>bundle/catalog_product_price</block><template>bundle/catalog/product/price.phtml</template></action></block>
</reference>
<reference name="right">
<action method="unsetChild"><alias>right.reports.product.viewed</alias></action>
<action method="unsetChild"><alias>right.reports.product.compared</alias></action>
</reference>-->
奇妙な動作が始まった後、そのコードを削除しましたが、問題は解決しませんでした。