Skip to content
Snippets Groups Projects
  • Jaime Pérez's avatar
    c72b6203
    bugfix: Resolve issue with incorrect self URL when using symlinks. · c72b6203
    Jaime Pérez authored
    Recent commits have introduced a new way to obtain the self URL, honouring whatever is specified in 'baseurlpath'. However, this new code breaks when accessing SimpleSAMLphp through a path containing symbolic links in the file system, since the base directory refers always to the real path while the $_SERVER contents reflect what the web server sees (symlinks included). We use realpath() to convert a path with symlinks to a canonical path that we can compare.
    c72b6203
    History
    bugfix: Resolve issue with incorrect self URL when using symlinks.
    Jaime Pérez authored
    Recent commits have introduced a new way to obtain the self URL, honouring whatever is specified in 'baseurlpath'. However, this new code breaks when accessing SimpleSAMLphp through a path containing symbolic links in the file system, since the base directory refers always to the real path while the $_SERVER contents reflect what the web server sees (symlinks included). We use realpath() to convert a path with symlinks to a canonical path that we can compare.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.