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
http://www.phpMoAdmin.com
GNU General Public License v3.0
187 stars 86 forks source link

MoAdmin doesn't work properly in HTTPS environment #10

Closed alexbilbie closed 13 years ago

alexbilbie commented 13 years ago

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>
alexbilbie commented 13 years ago

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