mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-12 13:13:45 +01:00
Fix: always include repository prefix in sandboxed compiles image name
This commit is contained in:
@@ -168,7 +168,7 @@ function compile(req, res, next) {
|
||||
draft: request.draft,
|
||||
png2pdf: request.png2pdf,
|
||||
imageName: request.imageName
|
||||
? Path.basename(request.imageName)
|
||||
? request.imageName
|
||||
: undefined,
|
||||
rootResourcePath: request.rootResourcePath,
|
||||
stopOnFirstError: request.stopOnFirstError,
|
||||
|
||||
@@ -29,7 +29,7 @@ export default ProjectEditorHandler = {
|
||||
deletedByExternalDataSource: project.deletedByExternalDataSource || false,
|
||||
imageName:
|
||||
project.imageName != null
|
||||
? Path.basename(project.imageName)
|
||||
? project.imageName
|
||||
: undefined,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user