Forums / General Questions / Problem with redirects

Problem with redirects

Views: 5,186

Results 21 to 24 of 24
4 Mar 2015, 2:52 PM
#21
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Problem with redirects

lat9:

Could it be some funky CHARSET thing, like the website is running ISO-8859-1 but the PHP file was saved as UTF8-without-BOM?

Testing:

index.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a

Test completed.

This is almost 100% definitely a 'problem' with the way the forum is handling things. The line above (like all the other pastings of this nature) looks perfect when pasted, but AFTER the message has been submitted the mysterious space is appearing.

The line above is/was an example from one of my own servers. I have confirmed several times that there are no 'strange' characters (UTF8 or ISO-8859) in the text being pasted. It is somehow being modified after hitting the 'save' button.

Try it yourself. :)

Cheers
RodG

ps. Trying a shorter version here: keyword=qwerty&inc_subcat=0

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

4 Mar 2015, 3:03 PM
#22
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Problem with redirects

More testing - Several pastings, progressively shorter URL's

index.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a
index.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0
main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a
main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0
search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a
search_in_description=0&keyword=qwerty&inc_subcat=0
index.php?keyword=qwerty&inc_subcat=0&sort=20a
index.php?keyword=qwerty&inc_subcat=0

------------ end pastings -----

Saved - 1st three antries appear with the space.

Now seeing waht adding a few XXX does.. Will it 'move' the space?

XXXXXXXXindex.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a
XXXXXXXXindex.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0
XXXXXXXXmain_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a

--- Yes, the space has moved. It looks like it is a positional thing.

All XXXX's
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Well, that seems to have proved the point. The forum is adding a space after a certain number of characters. (80 to be precise).

Cheers
RodG

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

4 Mar 2015, 4:04 PM
#23
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,119
Plugin Contributions:
56

Re: Problem with redirects

RodG:

Testing:

index.php?main_page=advanced_search&search_in_description=0&keyword=qwerty&inc_subcat=0&sort=20a

Test completed.

This is almost 100% definitely a 'problem' with the way the forum is handling things. The line above (like all the other pastings of this nature) looks perfect when pasted, but AFTER the message has been submitted the mysterious space is appearing.

The line above is/was an example from one of my own servers. I have confirmed several times that there are no 'strange' characters (UTF8 or ISO-8859) in the text being pasted. It is somehow being modified after hitting the 'save' button.

Try it yourself. :)

Cheers
RodG

ps. Trying a shorter version here: keyword=qwerty&inc_subcat=0
Agreed, definitely a forum-related quirk, possibly triggered by the** inc_s** portion of the &inc_subcat?

4 Mar 2015, 8:32 PM
#24
badarac avatar

badarac

Totally Zenned

Join Date:
Aug 2009
Location:
Longs, SC
Posts:
635
Plugin Contributions:
0

Re: Problem with redirects

Obviously a special function to keep us all amused with an interesting challenge. ;-)