attic-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1891790 - /attic/site/xdocs/scripts/attic_filter.lua
Date Sun, 25 Jul 2021 13:01:36 GMT
Author: sebb
Date: Sun Jul 25 13:01:36 2021
New Revision: 1891790

URL: http://svn.apache.org/viewvc?rev=1891790&view=rev
Log:
match() is not anchored

Modified:
    attic/site/xdocs/scripts/attic_filter.lua

Modified: attic/site/xdocs/scripts/attic_filter.lua
URL: http://svn.apache.org/viewvc/attic/site/xdocs/scripts/attic_filter.lua?rev=1891790&r1=1891789&r2=1891790&view=diff
==============================================================================
--- attic/site/xdocs/scripts/attic_filter.lua (original)
+++ attic/site/xdocs/scripts/attic_filter.lua Sun Jul 25 13:01:36 2021
@@ -13,7 +13,7 @@
 
 function output_filter(r)
     -- We only filter text/html types
-    if not r.content_type:match(".*text/html.*") then return end
+    if not r.content_type:match("text/html") then return end
 
     -- add header:
     -- get TLP part of hostname



Mime
View raw message