1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-23 18:29:15 +03:00

Avoid x-prefix

Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
This commit is contained in:
Liviu-Mihail Concioiu
2026-10-04 16:01:39 +02:00
parent a3fb345c4b
commit da5edf1580
2 changed files with 3 additions and 3 deletions

View File

@@ -99,13 +99,13 @@ while [ $# -gt 0 ] ; do
do_test=1
if [ -z "$version" ] ; then
version=$(echo "$1" | tr -d -c '0-9a-z.+-')
if [ "x$version" != "x$1" ] ; then
if [ "$version" != "$1" ] ; then
echo "Invalid version: $1"
exit 1
fi
elif [ -z "$branch" ] ; then
branch=$(echo "$1" | tr -d -c '/0-9A-Za-z_-')
if [ "x$branch" != "x$1" ] ; then
if [ "$branch" != "$1" ] ; then
echo "Invalid branch: $1"
exit 1
fi

View File

@@ -15,7 +15,7 @@ if [ $# -lt 2 ] ; then
exit 1
fi
REL=$(echo "$1" | tr -d -c '0-9a-z.-')
if [ "x$REL" != "x$1" ] ; then
if [ "$REL" != "$1" ] ; then
echo "Invalid version: $1"
exit 1
fi