View unanswered posts | View active topics It is currently 16 Dec 2018 18:25

Forum rules


- Use common sense and be respectful towards each other at all times, even when disagreeing.
- Do not reveal sensitive game information. Guild secrets, player seconds are examples of things not allowed.



Reply to topic  [ 1 post ] 
Web Client aliases do not load if they contain % sign 
Author Message
Greenhorne

Joined: 10 May 2017 16:48
Posts: 5
Hi Genesis admins and fans :)

I have been running into problems with aliases on the web client, and have tracked
it down to printing certain special characters, specifically a % sign:

Pattern: testpercent

Execute the following javascript:
gwc.output.append("This alias won't load because it has a % in it!");

It will run just fine after I create it, but if I linkdie or quit and then relogin
the alias is not loaded:

Loaded user data
Loaded 89 triggers (87 enabled)
Loaded 138 aliases (119 enabled)
testpercent
What?

Or if it is a multi-line alias, it will load but some of the lines will be missing
(including the one with the percent sign)

I am not a web programming expert, but Mallor suggested to wrap the save
aliases/triggers request in encodeURI.

Thanks!
Kelrhys


23 Oct 2017 22:59
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software.