Skip to content

Commit

Permalink
Fix "phpCAS" class capitalization in code (#273) (#277)
Browse files Browse the repository at this point in the history
Searched through the source code and replaced "phpcas::" -> "phpCAS::"
  • Loading branch information
phy25 authored and jfritschi committed Oct 17, 2018
1 parent 0729891 commit 6846e00
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions docs/Upgrading
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
### Upgrading 1.3.3 -> 1.3.4 ###
################################

For security hardening purposes the verbose error messages to the web browsers
are now masked. If you want to have the verbose messages you need to use:
For security hardening purposes the verbose error messages to the web browsers
are now masked. If you want to have the verbose messages you need to use:
phpCAS::setVerbose(true);
This will set the configuration to the old verbose mode that helps during
This will set the configuration to the old verbose mode that helps during
development and debugging.


Expand Down Expand Up @@ -68,7 +68,7 @@ For quick testing or in certain production screnarios you might want to
allow allow any other valid service to proxy your service. To do so, add
the "Any" chain:

phpcas::allowProxyChain(new CAS_ProxyChain_Any);
phpCAS::allowProxyChain(new CAS_ProxyChain_Any);

THIS SETTING IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/example_service.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Enable debugging
phpCAS::setDebug();
// Enable verbose error messages. Disable in production!
// Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true);

// Initialize phpCAS
Expand Down Expand Up @@ -69,11 +69,11 @@
// For quick testing or in certain production screnarios you might want to
// allow allow any other valid service to proxy your service. To do so, add
// the "Any" chain:
// phpcas::allowProxyChain(new CAS_ProxyChain_Any);
// phpCAS::allowProxyChain(new CAS_ProxyChain_Any);
// THIS SETTING IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
// IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
// ON THIS SERVICE.
//phpcas::allowProxyChain(new CAS_ProxyChain_Any);
//phpCAS::allowProxyChain(new CAS_ProxyChain_Any);

// force CAS authentication
phpCAS::forceAuthentication();
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/example_service_POST.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Enable debugging
phpCAS::setDebug();
// Enable verbose error messages. Disable in production!
// Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true);

// Initialize phpCAS
Expand Down Expand Up @@ -62,11 +62,11 @@
// For quick testing or in certain production screnarios you might want to
// allow allow any other valid service to proxy your service. To do so, add
// the "Any" chain:
// phpcas::allowProxyChain(new CAS_ProxyChain_Any);
// phpCAS::allowProxyChain(new CAS_ProxyChain_Any);
// THIS SETTING IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
// IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
// ON THIS SERVICE.
//phpcas::allowProxyChain(new CAS_ProxyChain_Any);
//phpCAS::allowProxyChain(new CAS_ProxyChain_Any);

// force CAS authentication
phpCAS::forceAuthentication();
Expand Down
6 changes: 3 additions & 3 deletions docs/examples/example_service_that_proxies.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

// Enable debugging
phpCAS::setDebug();
// Enable verbose error messages. Disable in production!
// Enable verbose error messages. Disable in production!
phpCAS::setVerbose(true);

// Initialize phpCAS
Expand Down Expand Up @@ -62,11 +62,11 @@
// For quick testing or in certain production screnarios you might want to
// allow allow any other valid service to proxy your service. To do so, add
// the "Any" chain:
// phpcas::allowProxyChain(new CAS_ProxyChain_Any);
// phpCAS::allowProxyChain(new CAS_ProxyChain_Any);
// THIS SETTING IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
// IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
// ON THIS SERVICE.
//phpcas::allowProxyChain(new CAS_ProxyChain_Any);
//phpCAS::allowProxyChain(new CAS_ProxyChain_Any);

// force CAS authentication
phpCAS::forceAuthentication();
Expand Down
2 changes: 1 addition & 1 deletion source/CAS.php
Original file line number Diff line number Diff line change
Expand Up @@ -1732,7 +1732,7 @@ public static function setSessionIdSalt($salt) {
* For quick testing or in certain production screnarios you might want to
* allow allow any other valid service to proxy your service. To do so, add
* the "Any" chain:
* phpcas::allowProxyChain(new CAS_ProxyChain_Any);
* phpCAS::allowProxyChain(new CAS_ProxyChain_Any);
* THIS SETTING IS HOWEVER NOT RECOMMENDED FOR PRODUCTION AND HAS SECURITY
* IMPLICATIONS: YOU ARE ALLOWING ANY SERVICE TO ACT ON BEHALF OF A USER
* ON THIS SERVICE.
Expand Down
2 changes: 1 addition & 1 deletion source/CAS/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function printHTMLFooter()
$lang = $this->getLangObj();
$this->_htmlFilterOutput(
empty($this->_output_footer)?
(phpcas::getVerbose())?
(phpCAS::getVerbose())?
'<hr><address>phpCAS __PHPCAS_VERSION__ '
.$lang->getUsingServer()
.' <a href="__SERVER_BASE_URL__">__SERVER_BASE_URL__</a> (CAS __CAS_VERSION__)</a></address></body></html>'
Expand Down

0 comments on commit 6846e00

Please sign in to comment.