<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog (Entries tagged as serendipity)</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 11 Apr 2008 09:58:17 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Seredipity default event_s9ymarkup plugin breaking URLs that contain underscores</title>
    <link>https://daniel-lange.com/archives/28-Seredipity-default-event_s9ymarkup-plugin-breaking-URLs-that-contain-underscores.html</link>
            <category>Serendipity</category>
    
    <comments>https://daniel-lange.com/archives/28-Seredipity-default-event_s9ymarkup-plugin-breaking-URLs-that-contain-underscores.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=28</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;
The default Serendipity mark-up plugin (event_s9ymarkup) currently breaks URLs that contain underscores.&lt;/p&gt;

&lt;p&gt;So
&lt;/p&gt;

&lt;blockquote&gt;http://en.wikipedia.org/wiki/Statler_%26_Waldorf&lt;/blockquote&gt;

&lt;p&gt;will end up&lt;/p&gt;

&lt;blockquote&gt;http://en.wikipedia.org/wiki/Statler&amp;lt;/u&amp;gt;%26_Waldorf&lt;/blockquote&gt;

&lt;p /&gt;

&lt;p&gt;
because of a faulty regex.

Garvin Hicking does not really want to fix this. (See &lt;a target=&quot;_blank&quot; title=&quot;Serendipity Forums: serendipity_event_s9ymarkup adds &lt;/u&gt; to URLs breaking&quot; href=&quot;http://board.s9y.org/viewtopic.php?p=72455&quot;&gt;this&lt;/a&gt; s9y support forum article for arguments pro/contra fixing it). So if you encounter this problem, your options are:
&lt;/p&gt;

&lt;ul&gt;&lt;li&gt;replace _ in URLs with %5F (aka manually urlencode it)&lt;/li&gt;&lt;li&gt;remove the plugin or disable it
&lt;/li&gt;&lt;li&gt;patch the plugin&lt;/li&gt;&lt;/ul&gt;

&lt;p&gt;Patching is basically changing&lt;/p&gt;

&lt;p&gt;&lt;font face=&quot;courier new,courier,monospace&quot;&gt;plugins/serendipity_event_s9ymarkup/serendipity_event_s9ymarkup.php&lt;/font&gt;:&lt;br /&gt;&lt;/p&gt;

&lt;blockquote&gt;$text = preg_replace(&#039;/\b_([\S ]+?)_\b/&#039;,&#039;&amp;lt;u&amp;gt;\1&amp;lt;/u&amp;gt;&#039;,$text);&lt;/blockquote&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;blockquote&gt;$text = preg_replace(&#039;/\ _([\S ]+?)_\ /&#039;,&#039; &amp;lt;u&amp;gt;\1&amp;lt;/u&amp;gt; &#039;,$text);&lt;/blockquote&gt;

&lt;p&gt;If you want to be writing things like &amp;quot;Haha[&lt;em&gt;lol&lt;/em&gt;]&amp;quot; (which I have no real use for ...), extend the &amp;quot;\ &amp;quot; with whatever you&#039;d like to be o.k. to delimit &lt;em&gt;bolded&lt;/em&gt; words beyond blanks. It should only be symbols that are not valid in URLs (so none of &amp;quot;$-_.+!*&#039;(),&amp;quot; which are all valid in URLs according to &lt;a title=&quot;RFC 1738 - Uniform Resource Locators (URL)&quot; target=&quot;_blank&quot; href=&quot;http://www.ietf.org/rfc/rfc1738.txt&quot;&gt;RFC 1738&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;You may also want to consider replacing one underscore (&amp;quot;_&amp;quot;) with two or more (&amp;quot;__&amp;quot;) to make the detection, that you actually wanted to write bold text, more reliable.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 11 Apr 2008 11:30:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/28-guid.html</guid>
    <category>bug</category>
<category>html</category>
<category>plugin</category>
<category>serendipity</category>
<category>underscore</category>
<category>url</category>

</item>
<item>
    <title>Serendipity plugin livesearch does not work with bulletproof template</title>
    <link>https://daniel-lange.com/archives/3-Serendipity-plugin-livesearch-does-not-work-with-bulletproof-template.html</link>
            <category>Serendipity</category>
    
    <comments>https://daniel-lange.com/archives/3-Serendipity-plugin-livesearch-does-not-work-with-bulletproof-template.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;The Livesearch (Javascript iterative search) plugin to &lt;a href=&quot;http://www.s9y.org&quot; target=&quot;_blank&quot; title=&quot;Serendipity (s9y)&quot;&gt;Serendipity (s9y)&lt;/a&gt; currently does not work with the &lt;a href=&quot;http://s9y-bulletproof.com&quot; target=&quot;_blank&quot; title=&quot;Bulletproof template&quot;&gt;Bulletproof template&lt;/a&gt; active.&lt;/p&gt;

&lt;p&gt;Matthias Mees (YellowLed) and Don(ald) Chambers are &lt;a href=&quot;http://s9y-bulletproof.com/index.php?url=archives/11-Customizable-navigation.html&amp;serendipity[cview]=threaded#comments&quot; target=&quot;_blank&quot; title=&quot;Comments to entry at s9y-bulletproof.com&quot;&gt;looking at it&lt;/a&gt;.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Thu, 18 Oct 2007 21:09:25 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/3-guid.html</guid>
    <category>bug</category>
<category>bulletproof</category>
<category>javascript</category>
<category>serendipity</category>

</item>

</channel>
</rss>
