Security Enforcer cause 500 error

OS info

  • Operating System : Mac OSX 17.6.0
  • Wappler Version : 1.0.3

Problem description

First off the Security Enforcer is fantastically well implemented. Very easy to add. However, it causes a 500 error when viewed in the browser.

https://lawryk.ca/portalindex.php

I found the problem,

for some reason it is addiing a very long file path …

require('../../../../../dmxConnectLib/dmxConnect.php');

Removing all the …/ solved the issue.

Good catch Brad. Maybe it is related to the new option we have now in the project settings “Links Relative To” - but on PHP it shouldn’t matter.

Anyway I will check it out

Could be, fixing that code works great. Thank you for this feature. Found it right where I expected to find it and it takes seconds to set up. Very well done.

2 Likes

The same is happening to me. I was just posting a thread when I spotted this one. Like Brad, removing the preceeding …/…/…/…/etc. fixed it.

yes we will address this issue in the next update

1 Like

This has been fixed in 1.0.4