paperlesspost/graphiti — pull request #23 by znbailey (2012-01-09 04:59:55+00:00)
Title: Fix double escaping of graph render request parameters

I was running into a problem with the graphs not loading correctly because it appears the request parameters were getting doubly escaped. E.g. with the following settings:

title "New Graph"
fgcolor "#333333"
etc

The render URL looked like:

/render/?width=950&height=400&from=-7d&fontSize=10&title=New%2520Graph&targets=&font=DroidSans&thickness=2&bgcolor=%2523FFFFFF&fgcolor=%2523333333&majorGridLineColor=%2523ADADAD&minorGridLineColor=%2523E5E5E5&_timestamp_=1326084781190#.png

(notice the %25 which is indicative of a %XX code getting doubly-escaped)

The correct URL is:

/render/?width=950&height=400&from=-7d&fontSize=10&title=New%20Graph&targets=&font=DroidSans&thickness=2&bgcolor=%23FFFFFF&fgcolor=%23333333&majorGridLineColor=%23ADADAD&minorGridLineColor=%23E5E5E5&_timestamp_=1326084781190#.png