Magento is escaping apostrophes when magic_quotes_gpc
is set to off
. When I set magic_quotes_gpc
to on
, Magento stops inserting slashes. It's completely backwards.
I can't have Magento escaping my apostrophes, but I also do not want to have magic_quotes_gpc
set to on
because I am concerned about the implications it might have on other parts of my site (vBulletin forum, Wordpress blog, etc.).
Just to note - Magento wasn't always behaving this way, it only started today.
EDIT: The behavior started after adding the following code to the Layout Update XML of one of my CMS pages:
<!--<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>-->
After the weird behavior started, I removed that code, but it did not fix the problem.