<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>zeyaLabs &#187; weird</title>
	<atom:link href="http://www.zeyalabs.ch/tags/weird/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zeyalabs.ch</link>
	<description>Binary and Plain Stuff... and more</description>
	<lastBuildDate>Tue, 30 Nov 2010 14:27:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unwanted Escaping Backslashes in WordPress 2.9</title>
		<link>http://www.zeyalabs.ch/posts/unwanted-escaping-backslashes-in-wordpress-2-9/</link>
		<comments>http://www.zeyalabs.ch/posts/unwanted-escaping-backslashes-in-wordpress-2-9/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:05:51 +0000</pubDate>
		<dc:creator>Oldie</dc:creator>
				<category><![CDATA[Techy Articles]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[weird]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.zeyalabs.ch/?p=161</guid>
		<description><![CDATA[After an update of a WordPress installation (2.8.5 to 2.9.1), I noticed that one of the plugins, Stray Random Quotes, stopped working properly: each time I submitted or updated a quote containing apostrophes or quotation marks, it came with escaping backslashes in front of these characters. A couple of teacups later I figured out what&#160;<a class="more" href="http://www.zeyalabs.ch/posts/unwanted-escaping-backslashes-in-wordpress-2-9/" title="read whole article">[...]</a>]]></description>
			<content:encoded><![CDATA[<p>After an update of a WordPress installation (2.8.5 to 2.9.1), I noticed that one of the plugins, <a href="http://wordpress.org/extend/plugins/stray-quotes/" target="_blank" class="extlink">Stray Random Quotes</a>, stopped working properly: each time I submitted or updated a quote containing apostrophes or quotation marks, it came with escaping backslashes in front of these characters.</p>
<p>A couple of teacups later I figured out what was causing the issue. In the old <code>wp-settings.php</code> file there was this line of code forcing <code>$_REQUEST</code> to be <code>$_GET</code> + <code>$_POST</code>:</p>
<pre class="brush: php; light: true; title: ; notranslate">
$_REQUEST = array_merge($_GET, $_POST);
</pre>
<p>In the old version it was closer to the beginning of the file, on line 51, but somewhere between versions 2.8.5 and 2.9.1 it was moved to line 637. Right <em>after</em> this part:</p>
<pre class="brush: php; light: true; title: ; notranslate">
$_GET    = add_magic_quotes($_GET   );
$_POST   = add_magic_quotes($_POST  );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);
</pre>
<p>Stray Quotes uses <code>$_REQUEST</code> to process submitted data. There we go.</p>
<p>I&#8217;m sure the folks at WordPress had their reasons for such a change (that&#8217;s why I&#8217;m calling it an &#8220;issue&#8221; and not a &#8220;problem&#8221;), it&#8217;s just that I can&#8217;t help wondering how many plugins (or even parts of the core) were affected by it. Last week, I was setting up a <a href="http://wordpress.org/extend/plugins/nextgen-gallery/" target="_blank" class="extlink">NextGEN Gallery</a> on another — fresh — installation of WordPress 2.9.1, and watched the same behavior when filling in photo captions. I admit I didn&#8217;t look into it then, but today I got suspicious all right.</p>
<p>Now, I reckon you want a solution&#8230; Sorry to disappoint you, but I can&#8217;t give you one. Not a <em>quick</em> one, at least.</p>
<p>What about writing to support guys, you&#8217;re probably asking yourself now? Don&#8217;t. I really doubt that this change can (or should, for that matter) be reversed in future versions of WordPress. Like I said, there must have been a reason for it.</p>
<p>So I&#8217;d say the best thing you can do is to figure out which plugins among those installed on your system(s) are affected, and contact their developers with either the information on the issue or, if you can, an implementation of the fix. And wait for updates.</p>
<p>Just please don&#8217;t go hack the core!</p><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.zeyalabs.ch%2Fposts%2Funwanted-escaping-backslashes-in-wordpress-2-9%2F&amp;title=Unwanted%20Escaping%20Backslashes%20in%20WordPress%202.9" id="wpa2a_2"><img src="http://www.zeyalabs.ch/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.zeyalabs.ch/posts/unwanted-escaping-backslashes-in-wordpress-2-9/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Проводи меня, милый</title>
		<link>http://www.zeyalabs.ch/posts/take-me-home/</link>
		<comments>http://www.zeyalabs.ch/posts/take-me-home/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:32:50 +0000</pubDate>
		<dc:creator>Oldie</dc:creator>
				<category><![CDATA[Situations]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[men]]></category>
		<category><![CDATA[weird]]></category>
		<category><![CDATA[women]]></category>

		<guid isPermaLink="false">http://www.zeyalabs.ch/?p=44</guid>
		<description><![CDATA[Засиделся тут как-то за компьютером&#8230; Где-то около часа ночи до меня доходит, что под окном уже в течение получаса кто-то бубнит, причем на пониженных тонах. И звуки странные время от времени раздаются &#8212; металлические такие, клацающие. Ну, думаю, подлецы, неужто звонки с великов воруют? Перешел в другую комнату (свет там был выключен, внешние жалюзи подняты,&#160;<a class="more" href="http://www.zeyalabs.ch/posts/take-me-home/" title="read whole article">[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Засиделся тут как-то за компьютером&#8230; Где-то около часа ночи до меня доходит, что под окном уже в течение получаса кто-то бубнит, причем на пониженных тонах. И звуки странные время от времени раздаются &#8212; металлические такие, клацающие.</p>
<p>Ну, думаю, подлецы, неужто звонки с великов воруют? Перешел в другую комнату (свет там был выключен, внешние жалюзи подняты, форточки открыты), прицелился &#8212; посреди дороги стоит парочка, вся в таком прощальном настроении. Парень опирается о велик, дергая ногой то педаль, то подставку (ура, не воруют и не ломают!), девчонка висит на нем, и оба что-то бубнят.</p>
<p>Прислушался: ну да, ну пока, ну до завтра, ну ты позвони, ну не, ну ты позвони, ну хорошо, ну ладно, ну чмоки, ну давай, ну все, ну чава&#8230;</p>
<p>Все понятно, короче. Отбой. Парочка, правда, странная какая-то: он выглядит лет на 16, весь такой спортивно-лампасный и &#8220;нагеленный&#8221;, она &#8212; с ног до головы закованная в джинсу сурьезная девушка лет 20-ти без лишней косметики с длинным русым хвостом. Н-да, любовь зла (все козлы?).</p>
<p>В тот момент, когда я начал разворачиваться, чтобы вернуться &#8220;на базу&#8221;, они наконец оторвались друг от друга&#8230; Парень припарковал велик у дома напротив, позвенел ключами, помахал в очередной раз корявкой и&#8230; исчез за дверями подъезда. А девушка&#8230; девушка ушла в темноту, стуча каблучками.</p>
<p>Один в поле не понял&#8230;</p><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.zeyalabs.ch%2Fposts%2Ftake-me-home%2F&amp;title=%D0%9F%D1%80%D0%BE%D0%B2%D0%BE%D0%B4%D0%B8%20%D0%BC%D0%B5%D0%BD%D1%8F%2C%20%D0%BC%D0%B8%D0%BB%D1%8B%D0%B9" id="wpa2a_4"><img src="http://www.zeyalabs.ch/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.zeyalabs.ch/posts/take-me-home/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

