WebAdmin UI showing URL Encoded Values

FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
edited January 2013 in Technical Support
<div class="IPBDescription">Builds 236/237</div>Since 236/237, the web admin chat ui has been showing text in url encoded values.

An example of this:
<!--quoteo--><div class='quotetop'>QUOTE </div><div class='quotemain'><!--quotec-->(All) Admin: %2A%2A%2A+Admins%3A+%5B%21%3F%5D+Squirrels%2C+Ocelot+Handjobs%2C+IronCore%2C+Shotgun+Llamacide%2E<!--QuoteEnd--></div><!--QuoteEEnd-->

Since this happens with my stock web/ folder, I am wondering if the ServerWebInterface.lua (or w/e its called, i forget) has been altered in 236/237 or something that caused this.

Comments

  • FuhrerDarqueSydeFuhrerDarqueSyde Join Date: 2004-10-04 Member: 32076Members, Constellation
    edited January 2013
    Just for reference, my solution to the issue was adding the following lines after "entry= data[i];" in rcon.js

    <!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->entry.player = decodeURIComponent(entry.player.replace(/\+/g, "%20"));
    entry.message = decodeURIComponent(entry.message.replace(/\+/g, "%20"));<!--c2--></div><!--ec2-->
Sign In or Register to comment.