Skip to content

Conversation

@geekwright
Copy link
Contributor

Researching issue #429 and found several by reference object assignments (quietly ignored since only anonymous can use it.)

While in the code, added input constraints as suggested by Cedric. I can't pinpoint an exact scenario, but there are a lot of paths in the register script. Limiting GET method requests to the intended set of operations sounds like a good idea.

Researching issue XOOPS#429 and found several by reference object
assignments (quietly ignored since only anonymous can use it.)

While in the code, added the input constraints as suggested by
Cedric. I can't pinpoint the exact scenario, but there are a
lot of paths in the register script. Limiting GET method
requests to the intended set of operations sounds like a good
idea.
@mambax7 mambax7 merged commit dc4e4bd into XOOPS:master Apr 13, 2017
@mambax7
Copy link
Collaborator

mambax7 commented Apr 13, 2017

there are more potential reference issues:
mambax7@d262f95

@zyspec
Copy link
Contributor

zyspec commented Apr 14, 2017

There are quite a few by reference issues (100+) still in the 2.5.x codebase but I'm not sure if you want to change these right before an RC release. I did a quick regex search of the code (=[\s]?&) and it turned up nearly 400 instances... I'd estimate that about half of these could be considered "valid" (e.g. are by-ref for vars) but the others probably should be removed at some point.

@geekwright geekwright deleted the issue429 branch April 14, 2017 16:39
@geekwright
Copy link
Contributor Author

I made changes in this case while I was investigating an open issue. As you mention, there are many other cases, but in our defense, we have eliminated far more than remain. I think that is good for now. We can pursue the rest after we get this release out.

@zyspec
Copy link
Contributor

zyspec commented Apr 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants