Patch: ensure cbSef uri points to /index.php

14 years 10 months ago #100506 by silvan
Hello,
I had a problem with Community Builder on a site where the default URI points to a /index.html instead of joomla's /index.php. With CB 1.2.x everything works except password recovery and wrong authentication because the form action for these functions was pointing to the default html homepage instead of /index.php.

This simple patch fixed the problem for me:

--- administrator/components/com_comprofiler/plugin.foundation.php.orig 2009-05-31 15:43:46.000000000 +0200
+++ administrator/components/com_comprofiler/plugin.foundation.php 2009-05-31 15:44:11.000000000 +0200
@@ -1926,7 +1926,7 @@
*/
function cbSef( $string, $htmlSpecials = true ) {
if ( ( $string == 'index.php' ) || ( $string == '' ) ) {
- $uri = $this->getCfg( 'live_site' ) . '/';
+ $uri = $this->getCfg( 'live_site' ) . '/index.php';
} else {
if ( ( $this->getUi() == 1 )
&& ( ( substr( $string, 0, 9 ) == 'index.php' ) || ( $string[0] == '?' ) )

Post edited by: silvan, at: 2009/05/31 15:57

Post edited by: silvan, at: 2009/05/31 15:58

Please Log in to join the conversation.

14 years 10 months ago #100544 by beat
Thanks for reporting and suggesting. We'll review. :)

#273

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.185 seconds

Facebook Twitter LinkedIn