當magic_quotes_gpc
設置爲off
時,Magento正在轉義撇號。當我將magic_quotes_gpc
設置爲on
時,Magento停止插入斜線。它完全倒退。當magic_quotes_gpc設置爲off時,引號被轉義
我不能擁有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>-->
怪異的行爲開始後,我刪除代碼,但它並沒有解決問題。
您今天在服務器上更改了哪些內容?像這樣的事情通常不會自發地發生。另外,你如何測試這個。我們可以嘗試重現的示例代碼? – Nick
服務器上沒有任何更改。我在修改之前做的唯一事情就是向CMS頁面的佈局更新XML添加一些代碼。我已經添加了上面的代碼。在此之前的某段時間,我對'robots.txt'做了一個小改動,以防止抓取工具訪問此CMS頁面。改變之後,一切都繼續正常工作。 – Nick