📢 Moderators Needed 🚀

Moderators are needed with resources to post or have access to resources to post. Submit an application to be considered.
D

RSS API routes generate invalid development output

D

DragonByte Tech

Guest
Guest or Bot
Defining the following two routes:

#1
1641315947134.webp

#2
1641315973396.webp

Will both write to api_dbtech-ecommerce_categories_.json.

Suggested solution:
In /src/XF/DevelopmentOutput/Route.php find:
PHP:

$subNameFile = preg_replace('#[^a-z0-9_-]#i', '-', $subName);

Replace with:
Code:

Code:
        $subNameFile = preg_replace('#/$#i', '_', $subName);
        $subNameFile = preg_replace('#[^a-z0-9_-]#i', '-', $subNameFile);

This will cause #1 to...

Read more

Continue reading...
 
Similar content Most view View more
Back
Top