magic_quotes_gpc
当设置为时,Magento 正在转义撇号off
。当我设置magic_quotes_gpc
为 时on
,Magento 停止插入斜杠。这完全是倒退。
我不能让 Magento 转义我的撇号,但我也不想magic_quotes_gpc
设置为,on
因为我担心它可能对我网站的其他部分(vBulletin 论坛、Wordpress 博客等)产生影响。
请注意 - Magento 并不总是这样,它只是从今天开始的。
编辑:将以下代码添加到我的 CMS 页面之一的布局更新 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>-->
在奇怪的行为开始后,我删除了该代码,但它并没有解决问题。