fix [target] if in root domain dir: uri file startswith("articles/")

This commit is contained in:
Cyrille L 2023-04-10 11:39:45 +02:00
parent e72ed8e9e3
commit 86255f04f7
1 changed files with 2 additions and 0 deletions

View File

@ -165,6 +165,8 @@ if not hole:
corrupt = True corrupt = True
if not args.target in args.pass_targets: if not args.target in args.pass_targets:
if args.target.startswith("articles/"):
args.target = args.target.rsplit("articles/")[1]
args.target = user_uri_dir + args.target args.target = user_uri_dir + args.target
# For logs: show uri if not shortname known # For logs: show uri if not shortname known