plugorgau / eventstreamr

Single and multi room audio visual stream management.
GNU Affero General Public License v3.0
6 stars 12 forks source link

Better Handle Characters in JSON Attributes #53

Closed techman83 closed 9 years ago

techman83 commented 10 years ago

Currently the very hacky fix to get around this here https://github.com/lukejohnosmahi/eventstreamr/blob/master/station/bin/station-mgr.pl#L396-L399

    # Post data
    $json = to_json($data);
    # some bug and it's late this could cause hideous issues if 
    # a device id has a / in it, but this should be unlikely
    $json =~ s{/|\.}{}g;

Would prefer a better solution for this.