Posted by: ShadowM Jun 7 2008, 10:57 PM
i've come across a slight problem when i 'advertise' a stream that has a pipe in it's name
-> everything after the pipe is executed within mirc as if it were a command
example :
CODE
[22:57] * ShadowM [Now Playing] Liveshow: Release Your Mind (Release Your Mind
[22:57] �� error � unknown command "STREAM"
The original Stream name: Release Your Mind | Stream Hosted @ X-Hosted.nl
preset 2 is what i use in Amip :
CODE
//describe $active [Now Playing] $if(%4,$if(%1,$if(%2,%1: $trunc(%4,32) - %2,%name),%name),%name) $if($mat(%min%sec,^0+$),[Stream],[%min:%sec])
and in my mirc i use :
CODE
alias mp3 {
/dde mplug announce preset 2
}
how do i escape the pipe (either in mirc or the preset) ?
As this is a security risk ( if i would host a stream and would add a pipe in the name and put in something like quit after it, i would be bumped off irc when i try to advertise .....just to be silent about other potential commands)
how do i resolve this at best ?
Posted by: Serge Jun 8 2008, 11:53 AM
http://amip.tools-for.net/wiki/manual/configurator#advanced
"Replace � | � with � $chr(124) � when sending to mIRC
mIRC uses | character for commands separation, so, it's possible to insert a command in the song tag that will do something bad with your mIRC. For security reasons AMIP can replace it with the $chr mIRC function that mIRC will evaluate to | but will not use it as commands splitter. "
Posted by: ShadowM Jun 9 2008, 10:05 PM
QUOTE(Serge @ Jun 8 2008, 01:53 PM)
http://amip.tools-for.net/wiki/manual/configurator#advanced
"Replace � | � with � $chr(124) � when sending to mIRC
mIRC uses | character for commands separation, so, it's possible to insert a command in the song tag that will do something bad with your mIRC. For security reasons AMIP can replace it with the $chr mIRC function that mIRC will evaluate to | but will not use it as commands splitter. "
found it .. think i've overlooked it
*bangs head on wall* ..
might it be a suggestion to put in on by default ..?
.. just to be on the 'safe' side ?