unicalabs / agrippa

Agrippa is a PHP-based secret sharing mechanism.
http://unicalabs.github.io/agrippa/
MIT License
19 stars 9 forks source link

Generated secret URL does not work if app not installed at site root #11

Open jormaster3k opened 4 years ago

jormaster3k commented 4 years ago

If the agrippa application is not installed at the site root, it generates an incorrect secret URL which does not work properly.

For example if installed at https://myserver.example.com/agrippa/public, the secret link that is generated is as follows:

https://myserver.example.com/show/14707339-3a14-4de0-8c86-19fd3931fd24

This appears to be a problem with revision 7f669a1 which assumes that agrippa is installed at the root. That revision should likely be reverted, as the generated secret URL loads with https even without that change.