aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gentoo-data.rb')
-rw-r--r--gentoo-data.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/gentoo-data.rb b/gentoo-data.rb
index f536e44..f0aa5f0 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -229,6 +229,7 @@ class GentooPlugin < Plugin
end
def glsa(m, params)
+ id = params[:glsa_id].gsub(/^(GLSA *)?/i,'')
source = GLSA_SRC.sub('@GLSA_ID@', params[:glsa_id])
res = fetch_file_or_url(source)
if res
@@ -402,7 +403,7 @@ plugin.default_auth( 'view', true )
REGEX_CP = /^(?:[-[:alnum:]]+\/)?[-+_[:alnum:]]+$/
REGEX_DEV = /^[-._[:alnum:]]+$/
REGEX_PROJECT = /^[-_@.[:alnum:]]+$/
-REGEX_GLSA = /^[-1234567890]+$/
+REGEX_GLSA = /^(GLSA ?)?[-1234567890]+$/i
plugin.map 'meta -v :pkg',
:requirements => {