@@ -899,27 +899,27 @@ public function checkParsingFunctions()
899899
900900 // Retain all field data since this isn't done over AJAX (yet)
901901 $ fields = array (
902- 'firstName ' => $ this ->getTrimmedInput ('firstName ' , $ _POST ),
903- 'middleName ' => $ this ->getTrimmedInput ('middleName ' , $ _POST ),
904- 'lastName ' => $ this ->getTrimmedInput ('lastName ' , $ _POST ),
905- 'email1 ' => $ this ->getTrimmedInput ('email1 ' , $ _POST ),
906- 'email2 ' => $ this ->getTrimmedInput ('email2 ' , $ _POST ),
907- 'phoneHome ' => $ this ->getTrimmedInput ('phoneHome ' , $ _POST ),
908- 'phoneCell ' => $ this ->getTrimmedInput ('phoneCell ' , $ _POST ),
909- 'phoneWork ' => $ this ->getTrimmedInput ('phoneWork ' , $ _POST ),
910- 'address ' => $ this ->getTrimmedInput ('address ' , $ _POST ),
911- 'city ' => $ this ->getTrimmedInput ('city ' , $ _POST ),
912- 'state ' => $ this ->getTrimmedInput ('state ' , $ _POST ),
913- 'zip ' => $ this ->getTrimmedInput ('zip ' , $ _POST ),
902+ 'firstName ' => $ this ->getSanitisedInput ('firstName ' , $ _POST ),
903+ 'middleName ' => $ this ->getSanitisedInput ('middleName ' , $ _POST ),
904+ 'lastName ' => $ this ->getSanitisedInput ('lastName ' , $ _POST ),
905+ 'email1 ' => $ this ->getSanitisedInput ('email1 ' , $ _POST ),
906+ 'email2 ' => $ this ->getSanitisedInput ('email2 ' , $ _POST ),
907+ 'phoneHome ' => $ this ->getSanitisedInput ('phoneHome ' , $ _POST ),
908+ 'phoneCell ' => $ this ->getSanitisedInput ('phoneCell ' , $ _POST ),
909+ 'phoneWork ' => $ this ->getSanitisedInput ('phoneWork ' , $ _POST ),
910+ 'address ' => $ this ->getSanitisedInput ('address ' , $ _POST ),
911+ 'city ' => $ this ->getSanitisedInput ('city ' , $ _POST ),
912+ 'state ' => $ this ->getSanitisedInput ('state ' , $ _POST ),
913+ 'zip ' => $ this ->getSanitisedInput ('zip ' , $ _POST ),
914914 'source ' => $ this ->getTrimmedInput ('source ' , $ _POST ),
915- 'keySkills ' => $ this ->getTrimmedInput ('keySkills ' , $ _POST ),
916- 'currentEmployer ' => $ this ->getTrimmedInput ('currentEmployer ' , $ _POST ),
917- 'currentPay ' => $ this ->getTrimmedInput ('currentPay ' , $ _POST ),
918- 'desiredPay ' => $ this ->getTrimmedInput ('desiredPay ' , $ _POST ),
919- 'notes ' => $ this ->getTrimmedInput ('notes ' , $ _POST ),
920- 'canRelocate ' => $ this ->getTrimmedInput ('canRelocate ' , $ _POST ),
921- 'webSite ' => $ this ->getTrimmedInput ('webSite ' , $ _POST ),
922- 'bestTimeToCall ' => $ this ->getTrimmedInput ('bestTimeToCall ' , $ _POST ),
915+ 'keySkills ' => $ this ->getSanitisedInput ('keySkills ' , $ _POST ),
916+ 'currentEmployer ' => $ this ->getSanitisedInput ('currentEmployer ' , $ _POST ),
917+ 'currentPay ' => $ this ->getSanitisedInput ('currentPay ' , $ _POST ),
918+ 'desiredPay ' => $ this ->getSanitisedInput ('desiredPay ' , $ _POST ),
919+ 'notes ' => $ this ->getSanitisedInput ('notes ' , $ _POST ),
920+ 'canRelocate ' => $ this ->getSanitisedInput ('canRelocate ' , $ _POST ),
921+ 'webSite ' => $ this ->getSanitisedInput ('webSite ' , $ _POST ),
922+ 'bestTimeToCall ' => $ this ->getSanitisedInput ('bestTimeToCall ' , $ _POST ),
923923 'gender ' => $ this ->getTrimmedInput ('gender ' , $ _POST ),
924924 'race ' => $ this ->getTrimmedInput ('race ' , $ _POST ),
925925 'veteran ' => $ this ->getTrimmedInput ('veteran ' , $ _POST ),
@@ -1205,39 +1205,39 @@ private function onEdit()
12051205 }
12061206
12071207 $ formattedPhoneHome = StringUtility::extractPhoneNumber (
1208- $ this ->getTrimmedInput ('phoneHome ' , $ _POST )
1208+ $ this ->getSanitisedInput ('phoneHome ' , $ _POST )
12091209 );
12101210 if (!empty ($ formattedPhoneHome ))
12111211 {
12121212 $ phoneHome = $ formattedPhoneHome ;
12131213 }
12141214 else
12151215 {
1216- $ phoneHome = $ this ->getTrimmedInput ('phoneHome ' , $ _POST );
1216+ $ phoneHome = $ this ->getSanitisedInput ('phoneHome ' , $ _POST );
12171217 }
12181218
12191219 $ formattedPhoneCell = StringUtility::extractPhoneNumber (
1220- $ this ->getTrimmedInput ('phoneCell ' , $ _POST )
1220+ $ this ->getSanitisedInput ('phoneCell ' , $ _POST )
12211221 );
12221222 if (!empty ($ formattedPhoneCell ))
12231223 {
12241224 $ phoneCell = $ formattedPhoneCell ;
12251225 }
12261226 else
12271227 {
1228- $ phoneCell = $ this ->getTrimmedInput ('phoneCell ' , $ _POST );
1228+ $ phoneCell = $ this ->getSanitisedInput ('phoneCell ' , $ _POST );
12291229 }
12301230
12311231 $ formattedPhoneWork = StringUtility::extractPhoneNumber (
1232- $ this ->getTrimmedInput ('phoneWork ' , $ _POST )
1232+ $ this ->getSanitisedInput ('phoneWork ' , $ _POST )
12331233 );
12341234 if (!empty ($ formattedPhoneWork ))
12351235 {
12361236 $ phoneWork = $ formattedPhoneWork ;
12371237 }
12381238 else
12391239 {
1240- $ phoneWork = $ this ->getTrimmedInput ('phoneWork ' , $ _POST );
1240+ $ phoneWork = $ this ->getSanitisedInput ('phoneWork ' , $ _POST );
12411241 }
12421242
12431243 $ candidateID = $ _POST ['candidateID ' ];
@@ -1310,22 +1310,22 @@ private function onEdit()
13101310 }
13111311
13121312 $ isActive = $ this ->isChecked ('isActive ' , $ _POST );
1313- $ firstName = $ this ->getTrimmedInput ('firstName ' , $ _POST );
1314- $ middleName = $ this ->getTrimmedInput ('middleName ' , $ _POST );
1315- $ lastName = $ this ->getTrimmedInput ('lastName ' , $ _POST );
1316- $ email1 = $ this ->getTrimmedInput ('email1 ' , $ _POST );
1317- $ email2 = $ this ->getTrimmedInput ('email2 ' , $ _POST );
1318- $ address = $ this ->getTrimmedInput ('address ' , $ _POST );
1319- $ city = $ this ->getTrimmedInput ('city ' , $ _POST );
1320- $ state = $ this ->getTrimmedInput ('state ' , $ _POST );
1321- $ zip = $ this ->getTrimmedInput ('zip ' , $ _POST );
1322- $ source = $ this ->getTrimmedInput ('source ' , $ _POST );
1323- $ keySkills = $ this ->getTrimmedInput ('keySkills ' , $ _POST );
1324- $ currentEmployer = $ this ->getTrimmedInput ('currentEmployer ' , $ _POST );
1325- $ currentPay = $ this ->getTrimmedInput ('currentPay ' , $ _POST );
1326- $ desiredPay = $ this ->getTrimmedInput ('desiredPay ' , $ _POST );
1327- $ notes = $ this ->getTrimmedInput ('notes ' , $ _POST );
1328- $ webSite = $ this ->getTrimmedInput ('webSite ' , $ _POST );
1313+ $ firstName = $ this ->getSanitisedInput ('firstName ' , $ _POST );
1314+ $ middleName = $ this ->getSanitisedInput ('middleName ' , $ _POST );
1315+ $ lastName = $ this ->getSanitisedInput ('lastName ' , $ _POST );
1316+ $ email1 = $ this ->getSanitisedInput ('email1 ' , $ _POST );
1317+ $ email2 = $ this ->getSanitisedInput ('email2 ' , $ _POST );
1318+ $ address = $ this ->getSanitisedInput ('address ' , $ _POST );
1319+ $ city = $ this ->getSanitisedInput ('city ' , $ _POST );
1320+ $ state = $ this ->getSanitisedInput ('state ' , $ _POST );
1321+ $ zip = $ this ->getSanitisedInput ('zip ' , $ _POST );
1322+ $ source = $ this ->getSanitisedInput ('source ' , $ _POST );
1323+ $ keySkills = $ this ->getSanitisedInput ('keySkills ' , $ _POST );
1324+ $ currentEmployer = $ this ->getSanitisedInput ('currentEmployer ' , $ _POST );
1325+ $ currentPay = $ this ->getSanitisedInput ('currentPay ' , $ _POST );
1326+ $ desiredPay = $ this ->getSanitisedInput ('desiredPay ' , $ _POST );
1327+ $ notes = $ this ->getSanitisedInput ('notes ' , $ _POST );
1328+ $ webSite = $ this ->getSanitisedInput ('webSite ' , $ _POST );
13291329 $ bestTimeToCall = $ this ->getTrimmedInput ('bestTimeToCall ' , $ _POST );
13301330 $ gender = $ this ->getTrimmedInput ('gender ' , $ _POST );
13311331 $ race = $ this ->getTrimmedInput ('race ' , $ _POST );
@@ -3426,8 +3426,8 @@ private function findDuplicateCandidateSearch()
34263426 {
34273427 $ duplicateCandidateID = $ _POST ['candidateID ' ];
34283428 }
3429- $ query = $ this ->getTrimmedInput ('wildCardString ' , $ _POST );
3430- $ mode = $ this ->getTrimmedInput ('mode ' , $ _POST );
3429+ $ query = $ this ->getSanitisedInput ('wildCardString ' , $ _POST );
3430+ $ mode = $ this ->getSanitisedInput ('mode ' , $ _POST );
34313431
34323432 /* Execute the search. */
34333433 $ search = new SearchCandidates ($ this ->_siteID );
0 commit comments