Support » Plugin: NS Cloner - Site Copier » Capitalization in new_site_name field causes significant failure

  • Resolved Aram Zucker-Scharff


    If the user places a string with capitalization in it in the new_site_name field, the cloning process will place that capitalized string into the database (which is very bad to begin with). But it becomes even worse if the user than attempts to clone the resulting site. That site will be duplicated with any new URL placed in the subsequent attempts’ new_site_name field not properly propagating to the database, giving all subsequent sites the identical URL in the database (with the same bad caps in the database) and the same occurring for any sites cloned from those sites.

    In short: disaster.

    There are good and better ways to solve this issue, but since I just want to resolve the problem ASAP, i just created a patch to de-cap all letters in the resolved field when processing for cloning.

    I suggest that the changes I’ve made at (or some other better validation check at the user level) be merged into the next patch for the plugin.

    Thanks for the great plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Never Settle


    And very many thanks for your input! We’ll take a look at those recommendations and merge them at the soonest opportunity. Very much appreciated.

    I honestly would have never thought of using caps in a site name. It’s essentially a subdomain or subfolder and as part of a URL I would never use uppercase. But fantastic catch and always better to be overprotective of bad input.

    All the best!

    (Did you find the logs? Or is there still an issue there?) they should be getting generated under /logs in the plugin directory.

    Great, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Capitalization in new_site_name field causes significant failure’ is closed to new replies.