From 1ed4a0f25ddf09a2fb21ea0d5ea2627b72c50ebf Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Fri, 13 Jan 2023 17:22:26 +1100 Subject: [PATCH] escape apostrophes in prefix/suffix on move existing which fixes BUG-116 --- BUGs | 3 +-- internal/js/files_support.js | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/BUGs b/BUGs index 629a1f8..cc5c8e5 100644 --- a/BUGs +++ b/BUGs @@ -1,4 +1,4 @@ -### Next: 116 +### Next: 117 BUG-100: I managed to get 2 photos matching mich in the NOT_WORKING photo (probably dif refimgs but same p.tag?) = /photos/2012/20120414-damien/IMG_8467.JPG BUG-106: cant add trudy /pat? as refimgs via FaceDBox @@ -6,4 +6,3 @@ BUG-106: cant add trudy /pat? as refimgs via FaceDBox (it came from a face bbox, BUT, I have grown the face seln by 10%?) BUG-109: add mich force override, removed it, then re-added it, then rebuild DB form scratch and metadata has a duplicate - redo disco metadata with md5 not UUID of face dataS -BUG-116: apostrophes in existing paths crashs diff --git a/internal/js/files_support.js b/internal/js/files_support.js index d0bbf46..9c43b34 100644 --- a/internal/js/files_support.js +++ b/internal/js/files_support.js @@ -60,7 +60,10 @@ function GetExistingDirsAsDiv( dt, divname, ptype ) else vis = '' s+= '' + s+= 'onClick="$(\'#prefix\').val(\''+item.prefix.replace("\'","\\\'")+'\'); ' + s+='$(\'#suffix\').val(\''+item.suffix.replace("\'","\\\'")+'\');return false;">' + s+=item.prefix+item.suffix + s+='' } ) if( s == '' ) $('#existing').html('')