• Resolved Ivaseg

    (@ivaseg)


    We can see wrong symbol \ in document name when I upload files with cyrilic and they are converted to latin by your plugin. As you can see on screenshot below, in one place this \ not exist but exist in the second place where we have tab versions.

    Here is screenshot for you https://i.imgur.com/Ok8v2do.jpg

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author bhaldie

    (@bhaldie)

    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 комп&#039ютер (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 6 years, 8 months ago by Ivaseg.
    • This reply was modified 6 years, 8 months ago by Ivaseg.
    Plugin Author bhaldie

    (@bhaldie)

    I just tested again on my own site:

    https://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 6 years, 8 months ago by Ivaseg. Reason: issue fixed so there is no reason to store this link for search engines
    Plugin Author bhaldie

    (@bhaldie)

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Wrong slash’ is closed to new replies.