[Vtigercrm-commits] [vtiger-commits] r9656 - in /vtigercrm/branches/5.0.2/modules/Portal: Portal.js Save.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed Oct 18 07:26:17 EDT 2006
Author: richie
Date: Wed Oct 18 05:26:12 2006
New Revision: 9656
Log:
changes made to support & in mysite url
Modified:
vtigercrm/branches/5.0.2/modules/Portal/Portal.js
vtigercrm/branches/5.0.2/modules/Portal/Save.php
Modified: vtigercrm/branches/5.0.2/modules/Portal/Portal.js
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Portal/Portal.js (original)
+++ vtigercrm/branches/5.0.2/modules/Portal/Portal.js Wed Oct 18 05:26:12 2006
@@ -71,6 +71,7 @@
Effect.Puff('orgLay');
$("status").style.display="inline";
var portalurl = document.getElementById('portalurl').value;
+ var portalurl = portalurl.replace(/&/g, "#$#$#");
var portalname = document.getElementById('portalname').value;
new Ajax.Request(
'index.php',
Modified: vtigercrm/branches/5.0.2/modules/Portal/Save.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Portal/Save.php (original)
+++ vtigercrm/branches/5.0.2/modules/Portal/Save.php Wed Oct 18 05:26:12 2006
@@ -13,10 +13,10 @@
if(isset($_REQUEST['record']) && $_REQUEST['record'] !='')
{
- $result=UpdatePortal($_REQUEST['portalname'],"http://".$_REQUEST['portalurl'],$_REQUEST['record']);
+ $result=UpdatePortal($_REQUEST['portalname'],"http://".str_replace("#$#$#","&",$_REQUEST['portalurl']),$_REQUEST['record']);
}else
{
- $result=SavePortal($_REQUEST['portalname'],"http://".$_REQUEST['portalurl']);
+ $result=SavePortal($_REQUEST['portalname'],"http://".str_replace("#$#$#","&",$_REQUEST['portalurl']));
}
header("Location: index.php?action=PortalAjax&module=Portal&file=ListView&mode=ajax&datamode=manage");
?>
More information about the vtigercrm-commits
mailing list