? Failure

User tests: Successful: Unsuccessful:

avatar colivier
colivier
18 Nov 2013

The function getWord deletes all digits from the variable and it is a problem for some components like k2 (ex : index.php?option=com_k).

avatar colivier colivier - open - 18 Nov 2013
avatar betweenbrain
betweenbrain - comment - 18 Nov 2013

Thanks for taking the time to create and submit this pull request.

I have confirmed the issue and the pull request tests good for me. Changing getWord to getVar seems like a reasonable solution.

avatar Bakual
Bakual - comment - 18 Nov 2013

Actually, getVar() doesn't exist and defaults to getString(), leaving us with almost unfiltered input.
What we really want is getCmd() or just get() (which is what we use in other places for getting the component) which defaults to getCmd().

Can you change that?

avatar colivier
colivier - comment - 18 Nov 2013

Thanks for your comment and of course I understood. I would like to change the PR but I don't know the method to do that :(

avatar colivier colivier - close - 18 Nov 2013
avatar colivier colivier - reopen - 18 Nov 2013
avatar zero-24
zero-24 - comment - 19 Nov 2013

Hi coliver,

I would like to change the PR but I don't know the method to do that :(

You can do the following:
1) open here your patch: https://github.com/colivier/joomla-cms/tree/patch-1
2) commit your changes in this branche :) (This mean edit the file and make the changes)

Thanks :)

avatar Bakual
Bakual - comment - 19 Nov 2013
avatar zero-24
zero-24 - comment - 19 Nov 2013

@Bakual ok this is more faster :+1:

avatar colivier
colivier - comment - 19 Nov 2013

Thanks Thomas and zeo-24 for your help

avatar betweenbrain
betweenbrain - comment - 27 Nov 2013

:+1: Looks great to me!

avatar MAT978
MAT978 - comment - 27 Nov 2013

@test good to me then set RTC on tracker - thanks

avatar betweenbrain
betweenbrain - comment - 27 Nov 2013

Thanks for testing @MAT978!

avatar infograf768 infograf768 - change - 2 Dec 2013
Status New Closed
Closed_Date 0000-00-00 00:00:00 2013-12-02 08:46:17
Labels Added: ?
avatar infograf768 infograf768 - close - 2 Dec 2013
avatar infograf768 infograf768 - close - 2 Dec 2013
avatar colivier colivier - head_ref_deleted - 2 Dec 2013
avatar colivier colivier - head_ref_restored - 2 Dec 2013
avatar colivier colivier - head_ref_deleted - 2 Dec 2013
avatar garyamort garyamort - reference | 3511d87 - 2 Dec 13

Add a Comment

Login with GitHub to post a comment