Browse Source

finally fixed

master
Felty 1 year ago
parent
commit
7029a96485
2 changed files with 14 additions and 0 deletions
  1. +6
    -0
      vidyen-vidhash/includes/js/interface/vy-link-generate.js
  2. +8
    -0
      vidyen-vidhash/includes/shortcodes/vidyen-vidhash-get-shortcode.php

+ 6
- 0
vidyen-vidhash/includes/js/interface/vy-link-generate.js View File

@ -39,6 +39,12 @@ function vidyen_link_generate()
//Fit the pool pass as people might get cute
//var pool_pass_prespace = removeSpaces(pool_pass);
var pool_pass = pool_pass.replace("=", "equalsign");
var pool_pass = pool_pass.replace(":", "colonsymbol");
var pool_pass = pool_pass.replace("@", "atsymbol");
var pool_pass = pool_pass.replace(".", "dotsymbol");
var pool_pass = pool_pass.replace("-", "dashsymbol");
var pool_pass = pool_pass.replace(/[^a-zA-Z0-9-_]/g, '');
var pool_checked = pool_check(pool);

+ 8
- 0
vidyen-vidhash/includes/shortcodes/vidyen-vidhash-get-shortcode.php View File

@ -173,6 +173,14 @@ function vidyen_vidhash_url_parse_func($atts) {
//Pool stuff
$mining_pool = $atts['pool']; //I seemed to forgot this needed to be fixed.
$password = $atts['pool_pass'];
//This in theory should fix the
$password = str_replace("equalsign","=",$password);
$password = str_replace("colonsymbol",":",$password);
$password = str_replace("atsymbol","@",$password);
$password = str_replace("dotsymbol",".",$password);
$password = str_replace("dashsymbol","-",$password);
$miner_id = 'worker_' . $vy_site_key . '_'. $youtube_id_miner_safe;
$vy_threads = $atts['threads'];

Loading…
Cancel
Save