Hi there, I think I've found a bug on escaping apostrophes/single quote char (may point to other chars too) in the wiki app. You can find it in
fadelkon - Directori d'eines lliures i respectuoses. In catalan, we use the "single quote" char in abreviations, like in english.
I found that I can't delete that page. See, the trash icon to delete it looks like this in html:
<i class="nav-link widget-nav-pills-icons fa fa-trash-o drop-icons" onclick="wiki_delete_page('Directori d''eines lliures i respectuoses', 'Directori d''eines lliures i respectuoses', 'bd35871965e147ac743bed4d3e70b694235769be81fd89d8997c72fc618464d2', 'id_bd35871965_713952')"></i>
It doesn't prompt anything on the browser's javascript shell if I click there, however I tried putting the code right away in the shell:
// function wiki_delete_page(wiki_page_name, wiki_page_url, wiki_resource_id, wiki_link_id);
wiki_delete_page('Directori d''eines lliures i respectuoses', 'Directori d''eines lliures i respectuoses', 'xxx', 'xxx')
SyntaxError: missing ) after argument list
I tried escaping \' and wrapping with single quotes (I guess I'm too used to bash), but it showed an error after confirming:
Error deleting page.
If someone knows how to solve it, I would be glad to commit to the code. Would the old wikis stop being accessible if we start escaping all special characters? By the way, where are the wikis stored? I didn't find any table and directory store/user looks to have only binary data. I would like to delete while we don't fix the problem for everyone.
Cheers!