Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
62e4de71
Commit
62e4de71
authored
Nov 18, 2024
by
Boris Yumankulov
Committed by
Vitaly Lipatov
Dec 10, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
have_end_slash added support to php? url style
for example fixed
http://www.svp-team.com/files/svp4-latest.php?linux
without this, url is cut to
http://www.svp-team.com/files/
parent
1ebc0f96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
tools_eget
bin/tools_eget
+4
-4
No files found.
bin/tools_eget
View file @
62e4de71
...
...
@@ -210,9 +210,9 @@ filter_order()
sort
-V
|
tail
-n1
}
have_end_slash
()
have_end_slash
_or_php_parametr
()
{
echo
"
$1
"
|
grep
-q
'/$
'
echo
"
$1
"
|
grep
-q
E
'(/$|\.php($|\?))
'
}
is_abs_path
()
...
...
@@ -1463,7 +1463,7 @@ make_fileurl()
elif
is_abs_path
"
$fn
"
;
then
# if there is file path from the root of the site
url
=
"
$(
get_host_only
"
$url
"
)
"
elif
!
have_end_slash
"
$url
"
;
then
elif
!
have_end_slash
_or_php_parametr
"
$url
"
;
then
url
=
"
$(
dirname
"
$url
"
)
"
fi
...
...
@@ -1550,7 +1550,7 @@ if [ -n "$2" ] ; then
MASK
=
"
$2
"
SEPMASK
=
"
$2
"
else
if
have_end_slash
"
$1
"
;
then
if
have_end_slash
_or_php_parametr
"
$1
"
;
then
URL
=
"
$1
"
MASK
=
""
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment