Alert Actions: Alert URL issue

The forum for help and support with FreeNATS as well as any useful hints and tips
Post Reply
say2paul
Posts: 10
Joined: Sat Aug 22, 2009 7:06 pm

Alert Actions: Alert URL issue

Post by say2paul » Wed Sep 16, 2009 11:00 am

Under System settings -> Alerts Actions

I have created an alert that calls a URL, the alert works fine and it calls the URL when required.

I need to use $ symbol in one of the parameter's value in the URL, but the problem is that $ never appears when the URL is called. I even tried it with the escape character i.e. /$ but still the result is same.

Please help me, I need to use $ as one of the parameters value.

Example use: http://xxx.xxx.xxx.xxx/sender.push?msis ... 1&message=

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Alert Actions: Alert URL issue

Post by dave » Wed Sep 16, 2009 8:50 pm

Hi,

Sorry I'm on holiday right now so can't check for certain but I'm pretty certain you just need to add a $ sign into the line:

$allowed="LOADS.OF.CHARS";
updated to $allowed="LOADS.OF.CHARS$";

in server/base/screen.inc.php at line 108.

Will test this and include it in the next release if it works ok.

Cheers,

Dave.

say2paul
Posts: 10
Joined: Sat Aug 22, 2009 7:06 pm

Re: Alert Actions: Alert URL issue

Post by say2paul » Thu Sep 17, 2009 5:33 pm

Great, it works!!

Thanks a ton Dave :)

Note* the line is 284 (not 108)

dave
Site Admin
Posts: 260
Joined: Fri May 30, 2008 9:09 pm
Location: UK
Contact:

Re: Alert Actions: Alert URL issue

Post by dave » Mon Sep 28, 2009 2:42 pm

Ok good stuff will include it in future releases.

Post Reply