-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it is possible to make this plugin compatible with the plugin encryptedpasswords #194
Comments
Following, I've been workin on this today (and affected by it for a while). The primary problem I run into is when you store an encrypted password in a table and then edit said table, it strips the At first I was trying to just put together a kludge that didn't strip away I'm wondering if we'd be better off creating a new handler function in Something vageuly like this (based off https://www.dokuwiki.org/devel:parser): // inc/parser/parser.php
$Lexer->addEntryPattern('<decrypt>', 'edit', 'decrypt');
$Lexer->addExitPattern('</decrypt>','decrypt');
// inc/parser/handler.php
function decrypt($match, $state, $pos) {
return true; // do we need to do additional processing here?
} Hopefully @splitbrain can give some pointers |
I've got a working solution, I'm not sure if it is the cleanest or not but here is what you can do. Edit Roughly line 633 is the Here is my complete function function plugin($name, $args, $state = '', $match = '') {
if($name === "encryptedpasswords") {
$this->doc .= "<decrypt>$match</decrypt>";
}
else {
$this->doc .= $match;
}
// This will break for plugins which provide a catch-all render method
// like the do or pagenavi plugins
# $plugin =& plugin_load('syntax',$name);
# if($plugin === null || !$plugin->render($this->getFormat(),$this,$args)) {
# }
} |
Hm... 3 Month ago I was forced to downgrade th encryptedpasswords to 2013-03-13 version in order to be compatible with Editable. So, kalenpw, my another idea is to compare the current encryptedpasswords version with 2013 one in order to find out what changes are there that make it incompatible. Like I already said, the current Editable work without problems with encryptedpasswords version 2013. |
This reverts commit b215e22.
@Floffyko, Thank you for sharing your idea. I hope the updated encryptedpasswords plugin 2020-11-02 will solve this issue. |
Hello,
it is possible to make this plugin compatible with the plugin encryptedpasswords? https://www.dokuwiki.org/plugin:encryptedpasswords
The plugin edittable provide a nice interface for editing table but the button encrypt doesn't respond in combination with edittable und encryptedpasswords
many thanks!
The text was updated successfully, but these errors were encountered: