From: Roland Häder Date: Mon, 12 Nov 2012 17:55:42 +0000 (+0000) Subject: Always initialize '_abc' X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;ds=sidebyside;h=af39da5aa7cc3737e01238755060dea0eb376896;p=mailer.git Always initialize '_abc' --- diff --git a/inc/filters.php b/inc/filters.php index 8ab2c11d18..e5120cb50f 100644 --- a/inc/filters.php +++ b/inc/filters.php @@ -355,6 +355,9 @@ function FILTER_INIT_RANDOMIZER () { // Take a prime number which is long (if you know a longer one please try it out!) setConfigEntry('_PRIME', 591623); + // Initialize array with all allowed chars + $GLOBALS['_abc'] = explode(',', 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,6,7,8,9,-,+,_,/,.'); + // Only execute this filter if installed if ((!isInstalled()) || (!isExtensionInstalledAndNewer('other', '0.2.5'))) { // Set missing entry @@ -367,9 +370,6 @@ function FILTER_INIT_RANDOMIZER () { // Simply init the randomizer with seed and _ADD value mt_srand(generateSeed() + getConfig('_ADD')); - - // Initialize array with all allowed chars - $GLOBALS['_abc'] = explode(',', 'a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,1,2,3,4,6,7,8,9,-,+,_,/,.'); } // Filter for removing updates