I put Alexander in copy since Im not sure where to report about this bug,
and maybe he knows where to forward it

I think that on top of your fix, there is a bug in https://paste.debian.net
as well

redirects links are messing with the content. Check out this example

curl -I '
http://paste.debian.net/?expire=604800&remember=0&code=%23++This+file+is+part+of+systemd.%0A%23%0A%23++systemd+is+free+software%3B+you+can+redistribute+it+and%2For+modify+it%0A%23++under+the+terms+of+the+GNU+Lesser+General+Public+License+as+published+by%0A%23++the+Free+Software+Foundation%3B+either+version+2.1+of+the+License%2C+or%0A%23++%28at+your+option%29+any+later+version.%0A%0A%5BUnit%5D%0ADescription%3DFile+System+Check+Daemon+to+report+status%0ADocumentation%3Dman%3Asystemd-fsckd.service%288%29%0ADefaultDependencies%3Dno%0ARequires%3Dsystemd-fsckd.socket%0ABefore%3Dshutdown.target%0A%0A%5BService%5D%0AExecStart%3D%2Flib%2Fsystemd%2Fsystemd-fsckd%0AStandardOutput%3Djournal%2Bconsole%0A&poster=person&lang=text
'

it returns:

HTTP/1.1 302 Found
Date: Tue, 13 Oct 2015 16:25:28 GMT
Server: Apache/2.4.10 (Debian)
Location:
https://paste.debian.net/?expire=604800&remember=0&code=%2523++This+file+is+part+of+systemd.%250A%2523%250A%2523++systemd+is+free+software%253B+you+can+redistribute+it+and%252For+modify+it%250A%2523++under+the+terms+of+the+GNU+Lesser+General+Public+License+as+published+by%250A%2523++the+Free+Software+Foundation%253B+either+version+2.1+of+the+License%252C+or%250A%2523++%2528at+your+option%2529+any+later+version.%250A%250A%255BUnit%255D%250ADescription%253DFile+System+Check+Daemon+to+report+status%250ADocumentation%253Dman%253Asystemd-fsckd.service%25288%2529%250ADefaultDependencies%253Dno%250ARequires%253Dsystemd-fsckd.socket%250ABefore%253Dshutdown.target%250A%250A%255BService%255D%250AExecStart%253D%252Flib%252Fsystemd%252Fsystemd-fsckd%250AStandardOutput%253Djournal%252Bconsole%250A&poster=person&lang=text
Content-Type: text/html; charset=iso-8859-1

which messes the line breaks, and so the page is returning this error:

Could not add your entry to the paste database:
Thanks to some spammers you need to provide at least 2 linebreaks

This is what really breaks pastebinit, since it tries to follow redirects
otherwise

Reply via email to