bp2008 / ui3

A powerful, modern HTML5 web interface for Blue Iris.
GNU Lesser General Public License v3.0
124 stars 16 forks source link

The %%VIRTDIR%% HTML macro value needs to be JSON string encoded by Blue Iris's web server. #139

Closed bp2008 closed 1 year ago

bp2008 commented 1 year ago

The %%VIRTDIR%% HTML macro value needs to be JSON string encoded by Blue Iris's web server.

Justification:

%%VIRTDIR%% is an undocumented HTML macro string added on March 23, 2020 at my request. It delivers the value of the "Virtual" field in Blue Iris Settings > Web Server. UI3 only uses it by inserting it into JavaScript string literals, but Blue Iris does not encode the string properly for this. If the user enters a quotation mark in the "Virtual" field for example, it will prevent UI3 from loading.

bp2008 commented 1 year ago

This was fixed a few Blue Iris patches ago.