On Mon, 27 May 2013, p...@users.alioth.debian.org wrote:
> -RewriteCond %{QUERY_STRING} ^src=\s*lib([^\s])([^\s]+)\s*$
> +RewriteCond %{QUERY_STRING} 
> ^src=.*?lib([-a-zA-Z0-9.]|%2B)((?:[-a-zA-Z0-9.]|%2B)+).*$

Strictly speaking, uppercases are also forbidden (at least by dpkg) and
the first character may not be anything else than alphanumeric:

    $name =~ m/[^-+.0-9a-z]/o &&
        return sprintf(_g("character '%s' not allowed"), $&);
    $name =~ m/^[0-9a-z]/o ||
        return _g("must start with an alphanumeric character");

Also, are you sure that we always get %2B for "+" ? Why not include the "+" in
the character range for extra safety ?

Cheers,
-- 
Raphaël Hertzog ◈ Debian Developer

Get the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/


-- 
To UNSUBSCRIBE, email to debian-qa-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20130527061900.ga10...@x230-buxy.home.ouaza.com

Reply via email to