-
Notifications
You must be signed in to change notification settings - Fork 1
Update jefreg.php #4
base: master
Are you sure you want to change the base?
Conversation
The sessid GET variable was base64 encoded. It should not be. It will never be detected if it is.
Hi Don, Thanks for emailing me. I wanted to discuss that with someone, but wasn't sure who to contact. I was looking at the code and the session id is attached as part of the base64 encoded value for installfrom GET variable. I tried to figure out why that was done, and realized it was never used. The only reference I see in the code to the session id as a get variable is in onAfterInitialise() and onAfterRoute() and onUserAfterLogin(). However, in each of these instances it is either being referenced or being removed. And they have a comment that says: // Retrieve $_SESSION data from the database if $_GET['sessid'] has a value However, the only time it actually exists as a GET variable assignment is in the getInstallFrom() method. And the problem I saw was that it was always being base64 encoded as part of the installfrom GET variable value, which didn't seem to make sense. You would never find it as a GET variable if it was base64 encoded as part of the installfrom GET variable value. So that is why I have adjusted it to not be part of that value. Let me know what you think. Michael On Tuesday, January 21, 2014 12:23 PM, Don Gilbert [email protected] wrote: Why are we passing the session id? What is the purpose for that requirement? |
I'm afraid you'll have to look at the broader picture here and this includes the install-from-web-server and the install-from-web-client repository. You can't really understand how the plugin works until you've gone through the code in those two other repositories. Let me elaborate on this...
I hope this helps to sort things out. Session ID is not needed at your own website that why it is encoded together with the rest of the URL. It is needed when you come back to grab the extension file. And by the time you come back to the developer site, it's already been decoded and used appropriately. |
Thanks for clarifying that. By, the way, one more question… Joomla 2.5 does not have the onUserAfterLogin event. This was added in Joomla 3.2. Assuming that this plugin can be used in Joomla 2.5, how can we remedy this? onUserAfterLogin is never called if you are using a Joomla version lower than 3.2. How about using onUserLogin for those Joomla versions? Let me know what you think. Michael On Tuesday, January 21, 2014 3:17 PM, emavro [email protected] wrote: I'm afraid you'll have to look at the broader picture here and this includes the install-from-web-server and the install-from-web-client repository. You can't really understand how the plugin works until you've gone through the code in those two other repositories. |
The sessid GET variable was base64 encoded. It should not be. It will never be detected if it is.