MyBB Community Forums

Full Version: [B] Strange escaped single quote in user_admin_permissions.lang.php
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
G'day everyone

I haven't installed MyBB yet... I'm just checking out the .lang.php files. I saw that there is an escaped single quote in the file user_admin_permissions.lang.php that doesn't looks like it should be escaped.

File:
user_admin_permissions.lang.php
Suspect line:
$l['confirm_perms_deletion2'] = "Are you sure you wish to revoke this user\'s permissions?";

There are other cases in the .lang.php files where "user's" have not been escaped like that, so this looks like an oversight.

That said, I haven't tested it live because I haven't installed MyBB yet.

Samuel (aka leuce)
This is done on purpose
(2008-10-28, 04:27 PM)Ryan Gordon Wrote: [ -> ]This is done on purpose.

Thanks! That answer is very helpful. :)
I find it odd that the language PHP files do no contain warnings to localisers that they should not use unescaped apostrophes in their translations. Will that not also break the code?

Again, I'm no PHP hacker myself, but similar warnings may be in order at all IDs that use this particular return syntax. Do you agree?