Support » Plugin: WebP Express » Sanity Check

  • Sanity check failed for destination path: Path is outside resolved document root.

    Could you please add an option to disable this check? I’m doing automated deploys, so I specifically want to symlink user uploads (and webp images) during deploy process.
    Having you do this sanity check is somewhat counterproductive.

    Great plugin though! Much appreciated!

Viewing 1 replies (of 1 total)
  • Thread Starter lilmofo

    (@lilmofo)

    To clarify: I did manage to solve the problem for me by modifying lib/classes/SanityCheck.php and have the method return $input instead of checking. Since I am using drupal-composer/preserve-paths I needed to add that file to my preserve-paths, but again that might break my site in the future. So it would be optimal being able to turn off that check, since that’s exactly what I want.

    Maybe there’s a way for you to test if the folder is symlinked, and if so not to do the SanityCheck.

    • This reply was modified 10 months, 1 week ago by lilmofo.
Viewing 1 replies (of 1 total)
  • The topic ‘Sanity Check’ is closed to new replies.