Merge pull request
#14 from ariadoss/fix/characterlist-element-and-duplicate
characterlist.php: remove the duplicate isNumber() - Merge this anyway (original reason was the redundant 'None' option for stories), then patch includes/storyform.php
--- a/includes/characterlist.php
+++ b/includes/characterlist.php
@@ -6,14 +6,6 @@
include(_BASEDIR."languages/$lang.php");
//header("Content-Type: text/html; charset=".CHARSET,true);
include("../includes/queries.php");
-// Checks that the given $num is actually a number. Used to help prevent XSS attacks.
-// Peculiar... Leaving both copies of the same exact function in this file prevents
-// breakage of the character list when using the category list for tinyMCE 4.x and newer...
-function isNumber($num) {
- if(empty($num)) return false;
- return (preg_match("/^[0-9]+$/", $num) || $num == "-1" ? true : false);
-}
-
// Checks that the given $num is actually a number. Used to help prevent XSS attacks.
// Peculiar... Leaving both copies of the same exact function in this file prevents
// breakage of the character list when using the category list for tinyMCE 4.x and newer...