Hello!
Congratulations for your useful tips and hack!
Quote:
----
2005/8/15 fixed
from:
- header( "Location: $url" ) ;
to:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;
----
2005/11/14 modified (for the security reason)
from:
- header( "Location: ".preg_replace("/& amp;/i",'&',$url) ) ;
to:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;
----
2005/11/17 modified (it is not necessary to convert & ) and added 2.2.3final
from:
- header( "Location: ".strtr(preg_replace("/& amp;/i",'&',$url),"\r\n\0"," ") ) ;
to:
- header( "Location: ".strtr($url,array("\r"=>'',"\n"=>'') ) ) ;
You Hva allready change main code with that chenges?
Quote:
Poster: skara Posted: 2005/8/13 0:15:47
its me again!
i made the hack and everything works fine except posting in NewBB2...
Doesnot work:
1. create topic
2. reply
3. fast reply
but works the delete in posts!
any suggestion pls?
Thank you!
I have same problem at CBB 3.01! and edit not work!
Quote:
You Hva allready change main code with that chenges?
The body of news had already modified.
Quote:
I have same problem at CBB 3.01! and edit not work!
This is just an issue of CBB or newbb2.
Perhaps, they don't use redirect_header() .
Quote:
CBB?
Of course, you can hack it, if you have enough skill
Quote:
Poster: JimKarvo Posted: 2006/3/25 16:34:55
Quote:
Poster: skara Posted: 2005/8/13 0:15:47
its me again!
i made the hack and everything works fine except posting in NewBB2...
Doesnot work:
1. create topic
2. reply
3. fast reply
but works the delete in posts!
any suggestion pls?
Thank you!
I have same problem at CBB 3.01! and edit not work!
JimKarvo, skara try using the 2005/11/14 version of this hack:
header( "Location: ".strtr(preg_replace("/&/i",'&',$url),"\r\n\0"," ") ) ;
For some reason ampersands get inserted in the redirection URL with CBB 3.01 and Xoops 2.2.4 when using the latest version of the hack. I haven't really looked why it happens but I had the feeling the problem is more in the core than this hack, or CBB.
I've checked and reverted it.
Perhaps, it is necessary to covert '& amp;' to '&' for the other modules.