diff -Naur /home/douglas/sites/archlinux/trunk_orig/web/html/pkgsubmit.php html/pkgsubmit.php --- /home/douglas/sites/archlinux/trunk_orig/web/html/pkgsubmit.php 2005-09-02 15:34:39.000000000 +0000 +++ html/pkgsubmit.php 2006-06-09 17:25:47.000000000 +0000 @@ -30,8 +30,13 @@ $pkg_name = str_replace("'", "", $_REQUEST["pkgname"]); $pkg_name = escapeshellarg($pkg_name); $pkg_name = str_replace("'", "", $pkg_name); # get rid of single quotes - $presult = preg_match("/^[a-z0-9][a-z0-9_-]*$/", $pkg_name); - if ($presult == FALSE || $presult <= 0) { + + # Solves the problem when you try to submit PKGBUILD + # that have the name with a period like (gstreamer0.10) + # Added by: dsa + $presult = preg_match("/^[a-z0-9][a-z0-9\._-]*$/", $pkg_name); + + if ($presult == FALSE || $presult <= 0) { # FALSE => error processing regex, 0 => invalid characters # $error = __("Invalid name: only lowercase letters are allowed.");