Escaping curly braces. Revcms

SaW

Member
Mar 3, 2018
101
15
I have no idea how to escape these: {server_ip} and {url} in rev, when people put them as their motto. How do i do this? Thanks.
 

JayC

Always Learning
Aug 8, 2013
5,493
1,398
Just remove them from the class.template file and just change {server_ip} to your proxy ip in client.php
This isn't the best idea, considering he wants to stop {url} as well which is used in all the files for rev

This is a bit overkill but you can use preg_replace:
Code:
echo preg_replace('/[^ \w]+/', '', $var);
 

Users who are viewing this thread

Top