I’ve tested with some default cyrillic text and I am not getting the same results as you. the \ is not being added to the name of the file. Are you using the most recent version of mDocs?
Thread Starter
Ivaseg
(@ivaseg)
Yes, I’m using latest version. And I’m sorry, it’s my fault because I didn’t test who is cause this error. I thinked that it caused by cyrillic filename but after testing I can say that this happen when I put document name. You can check it with this phrase “комп’ютер” (just copy it without quotes).
Steps to reproduce:
1. Put this phrase in field File Name when adding new document and save this document.
2. Click on this document and select Manage File and now you can see that File Name has phrase комп'ютер (I removed symbol ; here because wordpress convert it to symbol ‘).
3. Click on this document and select Goto Post. Then navigate to tab Versions and you can see this symbol \
-
This reply was modified 8 years, 2 months ago by
Ivaseg.
-
This reply was modified 8 years, 2 months ago by
Ivaseg.
I just tested again on my own site:
http://kingofnothing.net/mdocs-posts/компютер/
As you can see once again no issue, I followed each one of your steps exactly.
Thread Starter
Ivaseg
(@ivaseg)
https://i.imgur.com/FkdKINH.gifv recorded for you. Yes, when I copied this word from here and paste to my test site – the problem not exist. It seems like ‘ converted here too. So, we can try it in other way. Copy this word from this file url https://url-deleted/wp-content/uploads/2018/03/80.txt (don’t worry, it simple text document with just one this word)
-
This reply was modified 8 years, 2 months ago by
Ivaseg. Reason: issue fixed so there is no reason to store this link for search engines
Okay heres what you can do for me…
open the file mdocs-docs-preview.php got line 319 it will look like this:
<td class="mdocs-orange"><?php echo $the_mdoc['name'].' - <small class="text-muted"><i>'.$the_mdoc['filename'].'</i></small>'; ?></td>
and change it to this:
<td class="mdocs-orange"><?php echo stripslashes($the_mdoc['name']).' - <small class="text-muted"><i>'.$the_mdoc['filename'].'</i></small>'; ?></td>
Thread Starter
Ivaseg
(@ivaseg)
Thank you, marked as fixed.