Issue #1196588: use ctype_digit to check if a given string is a number.
[project/print.git] / print_pdf / print_pdf.module
index f60e0cd..46cee93 100644 (file)
@@ -544,7 +544,7 @@ function print_pdf_link_allowed($args) {
   }
   if (!empty($args['path'])) {
     $nid = preg_replace('!^node/!', '', drupal_get_normal_path($args['path']));
-    if (is_numeric($nid)) {
+    if (ctype_digit($nid)) {
       $args['node'] = node_load($nid);
     }
   }