User tests: Successful: Unsuccessful:
Pull Request for Issue # Check is unnecessary as JApplicationCli constructor has a check for this.
Removes duplicated code
CLI scripts are still work in CLI and not accessible via things like web interface.
(code review might be sufficent)
CLI scripts are still work in CLI and not accessible via things like web interface.
CLI scripts are still work in CLI and not accessible via things like web interface.
none
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | CLI |
You can't rerun appveyor tests :(
I have to do it from the bot account. I set it to rebuild.
I have tested this item
scripts remain inaccessible for the web as indeed the JApplicationCli
does the same check.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC after two successful testes.
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-03-31 22:36:04 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
It's not exactly the same check. But seems to be good enough for web accessibility
I believe the JApplicationCli constructor check is better than the PHP_SAPI check. As @nikosdion pointed out in another pr
You MUST NOT explicitly check for the CLI SAPI. Some hosts only provide access to the CGI SAPI but allow you to set the maximum execution time to 0, i.e. work almost identical to the CLI SAPI. In these cases you need to tweak the way input handling works.
I think the JApplicationCli constructor check fixes that issue too
Although his constructor check is probably a lot better
Please do not mention me on Joomla repositories.
Can someone rerun the appveyor 5.6 test? the Cachelite failure is unrelated to this PR