From 65225e7d0d392106d8c3fbc3f14a883351117501 Mon Sep 17 00:00:00 2001 From: Ricky Elrod Date: Mon, 9 Jan 2017 23:43:53 +0000 Subject: [PATCH] just for grins, we need this too Signed-off-by: Ricky Elrod --- roles/modernpaste/files/modern-paste.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/modernpaste/files/modern-paste.conf b/roles/modernpaste/files/modern-paste.conf index 529ea895ca..8a02cedf73 100644 --- a/roles/modernpaste/files/modern-paste.conf +++ b/roles/modernpaste/files/modern-paste.conf @@ -13,6 +13,11 @@ RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$ RewriteCond %{REQUEST_METHOD} POST RewriteRule ^/(.*)=/$ /stickynotes2modernpaste/$1= [L,PT] +RewriteCond %{HTTP_USER_AGENT} ^fpaste\/0\.3.*$ [OR] +RewriteCond %{HTTP_USER_AGENT} ^Python\-urllib.*$ +RewriteCond %{REQUEST_METHOD} POST +RewriteRule ^/(.*)=//$ /stickynotes2modernpaste/$1= [L,PT] + # Otherwise, if we're given a URL with a trailing slash, kill it. RewriteRule ^/(.*)=/$ /$1= [R,L]