Member
Member
binoyte   2012-08-01, 19:25
#1
In my template image.php, printParentBreadcrumb() send me wrong link after a search.

http://127.0.0.1/zp/index.php?p=search& amp;words=foo
(without the space)

instead of

http://127.0.0.1/zp/index.php?p=search&words=foo

What is wrong ?
Administrator
Administrator
acrylian   2012-08-01, 19:28
#2
Where is the difference between those?
Member
Member
binoyte   2012-08-01, 20:24
#3
& or & amp; are not equivalent in an URL (I guess)

the link
/zp/index.php?p=search& amp;words=foo

print an empty search page, whereas the link
/zp/index.php?p=search&words=foo
prints results in search page.

[edit] of course this append only if I don't use the mode rewrite.
Member
Member
sbillard   2012-08-01, 22:57
#4
This is a bug. We will get a fix in the next nightly build.
Administrator
Administrator
acrylian   2012-08-02, 08:27
#5
@binoyte: Just to add, when I answered there was not `&` in the examples, that's why I asked.
Member
Member
binoyte   2012-08-02, 14:07
#6
OK thanks guys.

@acrylian : no problem. The forum has converted automatically `&amps` to `&`, and there is no preview function.
Administrator
Administrator
acrylian   2012-08-02, 16:02
#7
Yep, you have to `escape` code so it does not do this.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.