From c1a1f4fe49f1098299e3ae2b6f083e814befce4b Mon Sep 17 00:00:00 2001 From: randomdan Date: Mon, 28 Nov 2011 15:11:35 +0000 Subject: Minor fixes and much improved .htaccess rules (fixes issues with .s in requests) --- gentoobrowse/.htaccess | 6 ++++-- gentoobrowse/emails/newpackageversions.xml | 2 +- gentoobrowse/xslt/atomebuilds.xslt | 6 +++--- gentoobrowse/xslt/search.xslt | 4 ++-- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/gentoobrowse/.htaccess b/gentoobrowse/.htaccess index bcd3d7f..ca0c9be 100644 --- a/gentoobrowse/.htaccess +++ b/gentoobrowse/.htaccess @@ -3,9 +3,11 @@ SetEnv filter-errordocs sethandler fcgid-script RewriteEngine on -RewriteCond %{REQUEST_URI} !\. +RewriteCond %{REQUEST_URI} !^/css/ +RewriteCond %{REQUEST_URI} !^/js/ +RewriteCond %{REQUEST_URI} !^/images/ +RewriteCond %{REQUEST_URI} !^/[^/]+\.[^/]+$ RewriteCond %{REQUEST_URI} !^/p2web -RewriteCond %{REQUEST_URI} !^/env RewriteRule ^(.*) /p2web/\1 [L] FilterDeclare XSLT diff --git a/gentoobrowse/emails/newpackageversions.xml b/gentoobrowse/emails/newpackageversions.xml index f187632..679641c 100644 --- a/gentoobrowse/emails/newpackageversions.xml +++ b/gentoobrowse/emails/newpackageversions.xml @@ -20,7 +20,7 @@ - + diff --git a/gentoobrowse/xslt/atomebuilds.xslt b/gentoobrowse/xslt/atomebuilds.xslt index aa7e911..7e75329 100644 --- a/gentoobrowse/xslt/atomebuilds.xslt +++ b/gentoobrowse/xslt/atomebuilds.xslt @@ -1,10 +1,10 @@ - + - + @@ -16,7 +16,7 @@ Wed, 16 Jun 2010 14:52:43 GMT Copyright: (C) Gentoo Foundation, Inc. 15 - + diff --git a/gentoobrowse/xslt/search.xslt b/gentoobrowse/xslt/search.xslt index feb3bfa..d37f45e 100644 --- a/gentoobrowse/xslt/search.xslt +++ b/gentoobrowse/xslt/search.xslt @@ -4,7 +4,7 @@ - Search results for "<xsl:value-of select="/gentoo/project2:params/project2:param[@name='criteria']/@value"/>" - Gentoo Browse + Search results for "<xsl:value-of select="/gentoo/project2:params/param[@name='criteria']/@value"/>" - Gentoo Browse -

Search results for ""

+

Search results for ""

-- cgit v1.2.3