MongoDB-Rox / phpMoAdmin-MongoDB-Admin-Tool-for-PHP

MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework

Home Page:http://www.phpMoAdmin.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MoAdmin doesn't work properly in HTTPS environment

alexbilbie opened this issue · comments

Hello,

We use moadmin in a secure environment and we have two problems:

When all the collections in a database are listed (url: https://example.com/moadmin.php?db=mydb) then the links to the collections link to

http://example.com/moadmin.php?db=mydb&action=listRows&collection=mycol

instead of

https://example.com/moadmin.php?db=mydb&action=listRows&collection=mycol

Next, all the JavaScript links when you're viewing a collection are appending the URL to the link so they don't work:

<a title="[Show Indexes]" href="http://example.comjavascript: $('#indexeslink').hide(); $('#indexes').show(); void(0);" id="indexeslink">[Show Indexes]</a>

Instead of:

<a title="[Show Indexes]" href="javascript: $('#indexeslink').hide(); $('#indexes').show(); void(0);" id="indexeslink">[Show Indexes]</a>

Forgot to mention, we're using PHP 5.3.2 on RHEL5 with the latest version of MongoDB and the PECL driver