Issue Bug Closed

#95534FilePathSanitizer doesn't allow files in Private dir

Georg Ringer 10/07/21, 18:22 updated 10/07/21, 18:41

Description

having a TS like

page >
page = PAGE
page {
  10 = IMAGE
  10 {
    file = GIFBUILDER
    file {
      format = jpg
      quality = 88
      XY = 300,50
      backColor = #fc8123
      20 = TEXT
      20 {
        offset = 10,22
        fontColor = #ffffff
     #   fontFile = EXT:website/Resources/Public/Fonts/vera.ttf
        text = TYPO
        text.wrap = |3
      }
    }
  }
}

shows an exception “Resource paths must start with “EXT:” and must reference Resources/Public”

so either the FilePathSanitizer is too picky or the default font provided in GifBuilder must be changed

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.