Skip to content

Commit

Permalink
Fix #12092: Detect SOAP API in url sniffing
Browse files Browse the repository at this point in the history
  • Loading branch information
amyreese committed Jun 21, 2010
1 parent 532b050 commit 00e60da
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config_defaults_inc.php
Expand Up @@ -128,6 +128,8 @@

$t_path = str_replace( basename( $_SERVER['PHP_SELF'] ), '', $_SERVER['PHP_SELF'] );
$t_path = basename( $t_path ) == "admin" ? dirname( $t_path ) . DIRECTORY_SEPARATOR : $t_path;
$t_path = basename( $t_path ) == "soap" ? dirname( dirname( $t_path ) ) . DIRECTORY_SEPARATOR : $t_path;

$t_url = $t_protocol . '://' . $t_host . $t_path;

} else {
Expand Down

0 comments on commit 00e60da

Please sign in to comment.