Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] special characters in smilies get escaped
#1
Hi,
i have one smilie which code is :'( . Everything seems to work fine except the clickable smilies in the newreply page. When you click on that smilie, the code :\'( is inserted instead. It seems that the ' is escaped so the backslash is inserted. The efect is that in the post, the smilie is no longer recogniced and the code appears instead of the image. Is it possible to fix this, please?
Thanks.
[Image: choli_av.php]
#2
This should fix it.
#3
Sorry, but it doesn't fix it. I didn't mean the smilies in the page misc.php?action=smilies&popup=true&editor=clickableEditor but the smilies in the table at the left of the edit box in newreply.php?tid=xxxx. So when you click one of these smilies, the code inserted is backslashed (and not the code displayed, like in the bug you pointed me)

Thanks again Wink

edit: see attached image:


Attached Files Thumbnail(s)
   
[Image: choli_av.php]
#4
This bug has been fixed in the latest code.

Please note the latest code is not live on the site or for download. An update will be released which contains this fix.
#5
Use the following file to fix:


Attached Files
.php   functions.php (Size: 89.31 KB / Downloads: 354)
#6
omg!... how many changes...

well, if i use that file I get this:
Quote:Fatal error: Cannot redeclare get_banned_usernames() (previously declared in xxxxxx/inc/functions.php:3416) in xxxxxx/inc/functions_user.php on line 573
Sad
[Image: choli_av.php]
#7
Upload your functions_user.php and I'll take a look.
#8
Well, mine is MyBB 1.2.2's functions.php, the same as you get in the original package. Anyway, here you have. And thanks for the help Smile


Attached Files
.php   functions.php (Size: 86.42 KB / Downloads: 277)
[Image: choli_av.php]
#9
I said functions_user.php.
#10
oh, sorry very much. Here you have.


Attached Files
.php   functions_user.php (Size: 15.35 KB / Downloads: 265)
[Image: choli_av.php]


Forum Jump:


Users browsing this thread: 1 Guest(s)