AnantLabs / dotnetkicks

Automatically exported from code.google.com/p/dotnetkicks
0 stars 1 forks source link

The image URL in the kick counter HTML code is wrong #267

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Submit a story
2. Look at the HTML snippet generated for the kick counter
3. Notice that the image URL is incorrectly

The generated HTML is as follows:

<a 
href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2ftomlev2.wordpress.com%2f
2011%2f10%2f01%2fwpf-creating-parameterized-styles-with-attached-properties%2f">
<img 
src="http%3A%2F%2Fwww.dotnetkicks.com%2FServices%2FImages%2FKickItImageGenerator
.ashx%3Furl%3Dhttp%253a%252f%252ftomlev2.wordpress.com%252f2011%252f10%252f01%25
2fwpf-creating-parameterized-styles-with-attached-properties%252f" border="0" 
alt="kick it on DotNetKicks.com" /></a>

Notice the image URL: it is URL-encoded, but shouldn't. If I paste this code on 
my Wordpress blog, the image doesn't show up; I have to fix it by URL-decoding 
it.

The correct HTML is this:

<pre><code>
<a 
href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2ftomlev2.wordpress.com%2f
2011%2f10%2f01%2fwpf-creating-parameterized-styles-with-attached-properties%2f">
<img 
src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=ht
tp%3a%2f%2ftomlev2.wordpress.com%2f2011%2f10%2f01%2fwpf-creating-parameterized-s
tyles-with-attached-properties%2f" border="0" alt="kick it on DotNetKicks.com" 
/></a>
</code></pre>

Original issue reported on code.google.com by thomas.l...@gmail.com on 1 Oct 2011 at 12:56