Ticket #2330: core.patch

File core.patch, 0.8 kB (added by robert, 5 years ago)

Here is the 1 character patch to page.routing.php.

  • core/page.routing.php

    old new  
    295295          do { 
    296296            var newname = prompt("<?php echo _("Rename route")?> " + document.getElementById('routename').value + " <?php echo _("to:")?>"); 
    297297            if (newname == null) return; 
    298           } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>")); 
     298          } while (!newname.match('^[a-zA-Z0-9][a-zA-Z0-9_]+$') && !alert("<?php echo _("Route name is invalid...please try again")?>")); 
    299299           
    300300          document.getElementById('newroutename').value = newname; 
    301301          document.getElementById('routeEdit').action.value = 'renameroute';